I'm going to add my own user control LoginBox to my MasterPage.
I want to just refresh the page the user is currently on when he logs in to the system开发者_JS百科. How can I accomplish this?
Store the landing page in a session variable, then when the user logs in use that for where to redirect them.
Better use this:
Request.UrlReferrer.AbsoluteUri
this will more or less solve your problem.
精彩评论