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

Members online

No members online now.

Forum statistics

Threads
473,764
Messages
2,569,567
Members
45,041
Latest member
RomeoFarnh

Latest Threads

Top