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">
            </wssucw:Welcome>
        </SharePoint:SPSecurityTrimmedControl>

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"
 Text="<%$Resources:wss,personalactions_loginasdifferentuser%>"
 Description="<%$Resources:wss,personalactions_loginasdifferentuserdescription%>"
 MenuGroupId="100"
 Sequence="100"
 UseShortId="true"
 />

See below the image:


1 comment: