To login back to the same page from wher eyou got logged out from - Sharepoint FBA
Uri MyLastURL;
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
MyLastURL = Request.UrlReferrer;
ViewState["LastURL"] = MyLastURL.AbsoluteUri;
}
}
protected void Login_Click(object sender, EventArgs e)
{ //After successful authentication do Response.Redirect
Response.Redirect(ViewState["LastURL"]);
}
Wednesday, May 12, 2010
Subscribe to:
Post Comments (Atom)
1 comment:
Thanks for sharing this logging in to SharePoint. I'm having problems wiht it and his really helped.
Post a Comment