Wednesday, June 20, 2012

SharePoint 2010 FBA : Windows/Forms Dropdown Sign in page


this page will be available under

C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\TEMPLATE\IDENTITYMODEL\LOGIN\Default.aspx


create a custom application page under layouts folder and replace with below code and change the url in central administration, here is the post to setup sign in url


<%@ Page Language="C#" Inherits="Microsoft.SharePoint.IdentityModel.Pages.MultiLogonPage" MasterPageFile="~/_layouts/simple.master" %>

<asp:Content ID="Content1" ContentPlaceHolderId="PlaceHolderPageTitle" runat="server">
       <SharePoint:EncodedLiteral runat="server"  EncodeMethod="HtmlEncode" Id="ClaimsLogonPageTitle" />
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderId="PlaceHolderPageTitleInTitleArea" runat="server">
       <SharePoint:EncodedLiteral runat="server"  EncodeMethod="HtmlEncode" Id="ClaimsLogonPageTitleInTitleArea" />
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderId="PlaceHolderSiteName" runat="server" >
      
</asp:Content>

<asp:Content ID="Content4" ContentPlaceHolderId="PlaceHolderIcon" runat="server">
   <img   title="logo" border="0" alt="PGC Logo" src="/_layouts/images/logo.gif"  />
 
</asp:Content>

<asp:Content ID="Content5" ContentPlaceHolderId="PlaceHolderMain" runat="server">

<div id="div1" style="display:none">
<SharePoint:EncodedLiteral runat="server"  EncodeMethod="HtmlEncode" Id="ClaimsLogonPageMessage" text="Select the credentials you want to use to logon to Prince George's County Extranet site" />
</div>

<SharePoint:EncodedLiteral runat="server"  EncodeMethod="HtmlEncode" Id="ClaimsLogonPageMessage1" text="Select the credentials you want to use to logon to  Extranet site" />
<br />
<br />

<SharepointIdentity:LogonSelector ID="ClaimsLogonSelector" runat="server" />

<br />
<br />

<SharePoint:EncodedLiteral runat="server"  EncodeMethod="HtmlEncode" Id="Message1" Text="Note: All Employees please select Windows Authentication."  />
<br />
<SharePoint:EncodedLiteral runat="server"  EncodeMethod="HtmlEncode" Id="Message2" Text="All other users please select Forms Authentication."  />
</asp:Content>


No comments:

Post a Comment

Followers