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

My sharepoint site doesn't show the logout button. I guess i need to provide link to the signout.aspx page on the master page. If I am using v4.master, then where do i provide link to signout.aspx in the master page

share|improve this question
add comment

1 Answer

In the v4.master page this is added to the master via the user control:

<%@ Register TagPrefix="wssuc" TagName="Welcome" src="~/_controltemplates/Welcome.ascx" %>
...
<wssuc:Welcome id="IdWelcome" runat="server" EnableViewState="false">
</wssuc:Welcome>

Which renders like:

wssuc Welcome control

The "Sign Out" button itself is defined in the .ascx as:

<SharePoint:MenuItemTemplate runat="server" id="ID_Logout"
             Text="<%$Resources:wss,personalactions_logout%>"
             Description="<%$Resources:wss,personalactions_logoutdescription%>"
             MenuGroupId="200"
             Sequence="300"
             UseShortId="true"
             />

So you can add the standard Welcome control, add this link to the standard Site Actions drop down with the snippet directly above, or create a custom Welcome.ascx.

Hope this helps.

share|improve this answer
    
thanks for the answer. I have one question on the welcome.ascx user control. Where on the .ascx are we providing link to signout.aspx page ? –  me24hour Feb 5 '13 at 19:59
    
If you find the file in the CONTROLTEMPLATES folder under TEMPLATES in the hive you can open it and find the SharePoint:MenuItemTemplate above. If you want to implement a custom menu item, see synteractiveingenuity.com/wordpress/2012/05/01/… which is the same process. –  RJ Cuthbertson Feb 6 '13 at 15:55
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.