M
mark4asp
The login page is: http://localhost:1086/Client/Default.aspx
The default page is: http://localhost:1086/Client/News/News.aspx
i.e. I have the following in web.config
<authentication mode="Forms">
<forms name="AcmeCo" loginUrl="Default.aspx" defaultUrl="News/
News.aspx"
protection="All" cookieless="AutoDetect"
slidingExpiration="true" />
</authentication>
I open up a new browser.
I enter the following into my address bar:
http://localhost:1086/Client/Search/Search.aspx
Immediately the url in my browser changes to: http://localhost:1086/Client/Default.aspx
Q1: How can I debug the application to work out why the ReturnUrl is
being lost?
Q2: What can I do to stop the ReturnUrl being lost?
Q3: Must I have ViewState on to keep this ReturnUrl accross postbacks?
(I think that's the problem - there is no ViewState. However the form
reads:
<form method="post" id="frmMain"
action="default.aspx<%if(Request.QueryString["ReturnUrl"] != null)
Response.Write("?ReturnUrl=" + Request.QueryString["ReturnUrl"]);%> "
This login page has no asp.net login controls - only html ones.
The default page is: http://localhost:1086/Client/News/News.aspx
i.e. I have the following in web.config
<authentication mode="Forms">
<forms name="AcmeCo" loginUrl="Default.aspx" defaultUrl="News/
News.aspx"
protection="All" cookieless="AutoDetect"
slidingExpiration="true" />
</authentication>
I open up a new browser.
I enter the following into my address bar:
http://localhost:1086/Client/Search/Search.aspx
Immediately the url in my browser changes to: http://localhost:1086/Client/Default.aspx
Q1: How can I debug the application to work out why the ReturnUrl is
being lost?
Q2: What can I do to stop the ReturnUrl being lost?
Q3: Must I have ViewState on to keep this ReturnUrl accross postbacks?
(I think that's the problem - there is no ViewState. However the form
reads:
<form method="post" id="frmMain"
action="default.aspx<%if(Request.QueryString["ReturnUrl"] != null)
Response.Write("?ReturnUrl=" + Request.QueryString["ReturnUrl"]);%> "
This login page has no asp.net login controls - only html ones.