ReturnUrl

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

Jon

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?
 
G

Guest

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);
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Staff online

Members online

Forum statistics

Threads
473,995
Messages
2,570,230
Members
46,816
Latest member
SapanaCarpetStudio

Latest Threads

Top