Dear All, I have one application where after successful Login user will be redirected to Home.aspx. Now if I try Response.Redirect("Home.aspx") it doesnt work, But if I try FormsAuthentication.RedirectFromLoginPage(TextBox1.Text, false);..its working. Now my question is why Response.Redirect() is not working? I know FormsAuthentication.RedirectFromLoginPage do much more than Login, it also sets cookie,and also redirects to Login Page, but why Redirct() is not working? web.config:
<authentication mode="Forms">
<forms loginUrl="LogIn.aspx" defaultUrl="Home.aspx" path="/"></forms>
</authentication>
<authorization>
<deny users="?"/>
</authorization>
Can somebody help?