M
mark4asp
Ok so my previous message about the vanishing ReturnUrl value was also
lost! - grrrr Fate - I'll get my revenge on you - if you think you can
toy with me like this!
I decided to change the form to an asp.net one:
if(!Page.IsPostBack)
hidReturnUrl.Value = Request.QueryString["ReturnUrl"];
else
hidReturnUrl.Value = Request.Form["hidReturnUrl"];
<form method="post" id="frmMain" runat="server">
<div>
<asp:HiddenField ID="hidReturnUrl" runat="server" />
... etc.
from:
<form method="post" id="frmMain"
action="default.aspx<%if(Request.QueryString["ReturnUrl"] !
= null) Response.Write("?ReturnUrl=" +
Request.QueryString["ReturnUrl"]);%> " >
Yet still the ReturnUrl in the querystring vanishes and the value in
hidReturnUrl is not kept across form posts.
Now, with the asp.net form, I can see a viewstate variable where
previously there was none. In both cases there two form fields are
html textbox elements (one for username and one for password).
Yet again I ask why is the ReturnUrl vanishing? and what can I do
about that? apart from making my login page a completely conventional
asp.net one (with login controls and all that rubbish).
PS: why did Google eat my last post?
lost! - grrrr Fate - I'll get my revenge on you - if you think you can
toy with me like this!
I decided to change the form to an asp.net one:
if(!Page.IsPostBack)
hidReturnUrl.Value = Request.QueryString["ReturnUrl"];
else
hidReturnUrl.Value = Request.Form["hidReturnUrl"];
<form method="post" id="frmMain" runat="server">
<div>
<asp:HiddenField ID="hidReturnUrl" runat="server" />
... etc.
from:
<form method="post" id="frmMain"
action="default.aspx<%if(Request.QueryString["ReturnUrl"] !
= null) Response.Write("?ReturnUrl=" +
Request.QueryString["ReturnUrl"]);%> " >
Yet still the ReturnUrl in the querystring vanishes and the value in
hidReturnUrl is not kept across form posts.
Now, with the asp.net form, I can see a viewstate variable where
previously there was none. In both cases there two form fields are
html textbox elements (one for username and one for password).
Yet again I ask why is the ReturnUrl vanishing? and what can I do
about that? apart from making my login page a completely conventional
asp.net one (with login controls and all that rubbish).
PS: why did Google eat my last post?