Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

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
add comment

3 Answers

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
add comment

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
add comment

Your Answer

 
discard

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.