ReturnUrl

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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.
 
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.

Are you using forms authentication and set that all up in the
web.config?
 
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);
 
Back
Top