Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / September 2007

Tip: Looking for answers? Try searching our database.

ReturnUrl

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
bobby - 28 Sep 2007 01:50 GMT
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);

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.