Results 1 to 3 of 3
Jan 11, 2012, 07:31 #1
- Join Date
- Jun 2004
- 0 Post(s)
- 0 Thread(s)
Redirect to querystring value on login user control
I want to pass a querystring to a usercontrol containing the name of the URL to redirec to uplon successful log-in. I have the following code:
protected void LogIn_OnLoggedIn(object sender, EventArgs e)
if (Request.QueryString["redirectURL"] != null)
redirectURL = Request.QueryString["redirectURL"];
However, it doesn't seem to recognise the querystring and always just redirects to the default redirect URL set in the web.config file.
The reason I need this is because the log-in form is within an iFramed modal window, so the user clicks a link from the main website, the log-in iframe is called and I then need to redirect the user to the page which they originally clicked the log-in link from.