VB.NET - http://localhost/Login.aspx?ReturnUrl=%2fDefault.aspx

Asked By P on 21-Feb-10 09:26 PM
Hi,

I am new to asp .net and am getting this error after a I login in. I am using forms authentication (asp .net 2.0).

After I enter my username and password on the login.aspx page, I click "Log In" but it does not take me back to Default.aspx.

If this is a question that has been answered already, please show my where I can see the solution.

Thanks in advance.
Sakshi a replied to P on 21-Feb-10 11:27 PM
there is one space character between returnUrl= and Default.aspx.
remove that and try it will work.

probably you might have given a space char before login.aspx . check the red colored area.
<system.web>
  <authentication mode="Forms">
    <forms loginUrl="Login.aspx"