D
Donkey
Hi i've made a loginpage and a protected one. If the user tries to
enter the protected page he gets redirected to the loginpage and at
this point everything works fine.
But when the user goes directly to the loginpage and types his pasword
it fails to login.
it tried to solve this with following code but this doesn't work
properly
if(Request.Querystring ("ReturnUrl")= "" ) then
Response.redirect("reservatie.aspx")
lblResult.Text = "juist maar niet ingelogd"
else
FormsAuthentication.RedirectFromLoginPage (TextBox1.Text, True)
end if
Anyone an idea what i have to change to get this to work.
Thanks
enter the protected page he gets redirected to the loginpage and at
this point everything works fine.
But when the user goes directly to the loginpage and types his pasword
it fails to login.
it tried to solve this with following code but this doesn't work
properly
if(Request.Querystring ("ReturnUrl")= "" ) then
Response.redirect("reservatie.aspx")
lblResult.Text = "juist maar niet ingelogd"
else
FormsAuthentication.RedirectFromLoginPage (TextBox1.Text, True)
end if
Anyone an idea what i have to change to get this to work.
Thanks