Tuesday, 5 February 2013

Login in User control with Sign In different User in sharepoint 2013 .

User login control in sharepoint 2013 .

Logged in :

 <SharePoint:SPSecurityTrimmedControl runat="server">
            <wssucw:Welcome runat="server" EnableViewState="false">

See below the image:

Sign In different User :

You Need "Sign In different User " menu item  means follow the steps,                  

Step 1: Locate the file \15\TEMPLATE\CONTROLTEMPLATES\Welcome.ascx and open in a text editor.
Step 2: Add the following element before the existing element with the id of “ID_RequestAccess”:

<SharePoint:MenuItemTemplate runat="server" ID="ID_LoginAsDifferentUser"

See below the image: