Calling this funtion will redirect user to his last visited page after logging in.
protected void RequestLogin()
{
this.Response.Redirect(FormsAuthentication.LoginUrl +
"?ReturnUrl=" + this.Request.Url.PathAndQuery);
}
Calling this funtion will redirect user to his last visited page after logging in.
protected void RequestLogin()
{
this.Response.Redirect(FormsAuthentication.LoginUrl +
"?ReturnUrl=" + this.Request.Url.PathAndQuery);
}
public string BaseUrl
{
get
{
string url = this.Request.ApplicationPath;
if (url.EndsWith("/"))
return url;
else
return url + "/";
}
}