private void RedirectAfterLogin()
{
//The GetRedirectUrl method returns the URL specified in the query string using the ReturnURL variable name.
var redirectUrl = SessionManager.GetRedirectUrl(SessionManager.Current);
HttpContext.Current.Response.Redirect(redirectUrl, true);
}