Page.form.DefaultButton = yourbuttonid.UniqueID;
Friday, July 17, 2009
Wednesday, July 15, 2009
Resolution for no css and pics with authentication on web.config
"<authentication mode="Forms">
<forms name="StaffAssistLogin" loginUrl="./Default.aspx" protection="All" timeout="180"/>
</authentication>
<forms name="StaffAssistLogin" loginUrl="./Default.aspx" protection="All" timeout="180"/>
</authentication>
<authorization>
<deny users="?" />
authorization>"
When you put these codes on your web.config file. It will redirect you to the Default.aspx page. But the image and css will not display.
We'd better put the pages which you want to redirect to Default.aspx without authentication in a folder. Let's call it "forms". Then put the code below the line instead of
"<authorization>
<deny users="?" />
authorization>
------------------------------------------------------------------------
<location path="forms">
<system.web>
<authorization>
<deny users="?" />
authorization>
system.web>
location>"
Problem solved.
Subscribe to:
Posts (Atom)