Hi,
I have three pages. Login page, Default.aspx and admin.aspx. There is link
inDefault.aspx page which redirects to admin.aspx page. But I want the
ReturnURl as "admin.aspx" page and want to save that ReturnURl in Query
string. But when I click on page it simply redirects me to that page but
doesn't show ReturnUrl in the bwoser.
Jon - 28 Sep 2007 11:54 GMT
> Hi,
>
[quoted text clipped - 3 lines]
> string. But when I click on page it simply redirects me to that page but
> doesn't show ReturnUrl in the bwoser.
Are you using forms authentication and set that all up in the
web.config?
bobby - 28 Sep 2007 17:16 GMT
Yes.
> > Hi,
> >
[quoted text clipped - 6 lines]
> Are you using forms authentication and set that all up in the
> web.config?
Alexey Smirnov - 29 Sep 2007 09:20 GMT
> I have three pages. Login page, Default.aspx and admin.aspx. There is link
> inDefault.aspx page which redirects to admin.aspx page. But I want the
> ReturnURl as "admin.aspx" page and want to save that ReturnURl in Query
> string.
HyperLink1.NavigateUrl ="admin.aspx?ReturnUrl=" +
Server.UrlEncode(HttpContext.Current.Request.RawUrl);