SharePoint: How to find DispForm.aspx toolbar

I needed list item display view toolbar on one of the custom forms. It wasn’t very easy to find it from many files but I found it at last. Nice to be beginner anyway.

    recycleBinEnabled = <SharePoint:ProjectProperty Property=
"RecycleBinEnabled" runat="server"/>;
<wssuc:ToolBar  CssClass="ms-toolbar" id="toolBarTbl" runat="server" FocusOnToolbar=true>
<SharePoint:EnterFolderButton runat="server"/>
<SharePoint:NewItemButton runat="server"/>
<SharePoint:EditItemButton runat="server"/>
<SharePoint:EditSeriesButton runat="server"/>
<SharePoint:DeleteItemButton runat="server"/>
<SharePoint:ClaimReleaseTaskButton runat="server"/>
<SharePoint:ManagePermissionsButton runat="server"/>
<SharePoint:ManageCopiesButton runat="server"/>
<SharePoint:ApprovalButton runat="server"/>
<SharePoint:WorkflowsButton runat="server"/>
<SharePoint:AlertMeButton runat="server"/>
<SharePoint:VersionHistoryButton runat="server"/>

So if you need DispForm.aspx toolbar then take this code or open file C:\Program Files\Common Files\microsoft shared\Web Server Extensions\12\TEMPLATE\CONTROLTEMPLATES\DefaultTemplates.ascx and search for DisplayFormToolBar.

Gunnar Peipman

Gunnar Peipman is ASP.NET, Azure and SharePoint fan, Estonian Microsoft user group leader, blogger, conference speaker, teacher, and tech maniac. Since 2008 he is Microsoft MVP specialized on ASP.NET.

    One thought on “SharePoint: How to find DispForm.aspx toolbar

    Leave a Reply

    Your email address will not be published. Required fields are marked *