I have two views in my MVC 2 Login and Register
In my Login.aspx i have added
<td>Click here to <%: Html.ActionLink("[Register]", "Register") %></td>
However I am getting ReturnUrl=%2fViews%2fHome%2fRegister in my address bar redirecting it back to Login.
I referred this Stack Overflow Question and made corresponding changes in my web config but no luck.
But when in my config I changed ,
<authentication mode="Forms" >
<forms loginUrl="~/Home/Login" timeout="2880" />
to
<authentication mode="Forms" >
<forms loginUrl="~/Home/Register" timeout="2880" />
It worked.
I haven't changed anything in Global.asax.cs file. How can i navigate to my Register view using Html Action Link ??
Note: I am using MVC 2
Thank you All