Last post Apr 06, 2005 11:19 PM by Ahmed Abu Dagga
Apr 06, 2005 01:09 PM|em23|LINK
Hi, I'd like my application to return to the previous page after logging in, but I don't know how to do that. So if you're on the default.aspx and then you click the login button which brings you to login.aspx, after you login i would like my code to send
you back to default.aspx. Could someone tell me how to do this from the code behind file. The code below doesn't work, but am I close? Thank you.
Current_Url = HttpContext.Current.Request.Url
Apr 06, 2005 11:19 PM|Ahmed Abu Dagga|LINK
when you made login button write current page as query string in login url and use this querystring in login page.
if you are put your login button in custom user control use Page.Request.Path to get current page
I hope this help