SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Im creating custom login page for sharepoint that will use Forms Based Authenitcation. I've read couple articles how to do it, but something is not clear to me.

What class should my Login.aspx (and other forms such as ResetPassword.asxp, UpdatePassword and etc) inherit from:

1.LayoutsPageBase 2.System.Web.UI.Page 3.FormsSignInPage 4.IdentityModelSignInPageBase Thanks,

share|improve this question

There is a default FBA login page already there in

C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\TEMPLATE\LAYOUTS\Login.aspx

Could you use that as a template ?

share|improve this answer

The login page must be inherited from the Microsoft.SharePoint.IdentityModel.Pages.FormsSignInPage class according to this guide.

share|improve this answer
I tried doing that, but when i inherit from FormsSignInPages, im having trouble with inherited events (AuthenticatedEventHandler, LoggingInEventHandler). What i did is, im actually inheriting from IdentityModelSignInPageBase just to avoid some of the logic on FormsSignInPages level. Im getting expected results, im just curious how other people are doing it – bakre Mar 12 '12 at 20:17

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.