Wednesday, May 12, 2010

Sharepoint FBA- Login back to same page

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



1 comment:

Office 365 said...

Thanks for sharing this logging in to SharePoint. I'm having problems wiht it and his really helped.