ReturnURL problem
ASP.NET
1
Posts
1
Posters
0
Views
1
Watching
-
Hi all. I have a such problem with ReturnURl parameter when using custom authentication in web site.
System.Web.Security.FormsAuthentication.RedirectFromLoginPage(txtUsername.Text, false);
returns me not to same page from which authentication was requested. The problem is in get parameters. I have page, for example: default.aspx?cnt=1&cat=34 . So ReturnUrl looks like : LoginPage.aspx?ReturnUrl=/default.aspx?cnt=1&cat=34 and &cat=34 is not a value of ReturnUrl - it is separated parameter in this string - so it redirect to default.aspx?cnt=1 How i cat solve this problem? Thanks Rull.