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,
Logged in :
<SharePoint:SPSecurityTrimmedControl runat="server">
<wssucw:Welcome runat="server" EnableViewState="false">
</wssucw:Welcome>
</SharePoint:SPSecurityTrimmedControl>
See below the image:
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:
Hi Raj,
ReplyDeleteNice post, thanks for sharing this trick.
Sharepoint Developers