Friday, February 29, 2008

How to hide View: menu on the right-hand-side of the SharePoint 2007 toolbar?

  • Display the view in a browser
  • Open the source in an editor. This is done by "right-click / view source" in IE
  • Search for "ms-listheaderlabel". It will land on a <td> tag.
  • Right under that <td> tag you will find another <td> tag with an ID like: ctl00_m_g_672c28cb_9a7b_4898_a26c_22eefe71074d_ctl00_ctl00_toolBarTbl_RightRptControls_ctl00_ctl00_onetViewSelector
  • Copy the ID into the clipboard.
  • Create a style in an editor as follows and use the ID that you copied into the clipboard:

<style type="text/css">




.ms-listheaderlabel {




  • Click on "Site Actions / Edit Page"
  • Add "Content Editor Web Part" to the page.
  • Cick on "open the tool pane"
  • Click on the "Source Editor ..." button on the far right-hand-side of the page
  • Copy and paste the <script ...> code from your editor into the "Text Entry -- Webpage Dialog"
  • Click "Save" button
  • Click "OK" button
  • Click "Exit Edit Mode" link.

Tuesday, February 19, 2008

DevTeach 2008 Toronto

Yes. I will be delivering three talks on SharePoint at the DevTeach 2008 conference in Toronto May 12-16 2008. I am thrilled to be invited once again after DevTeach Vancouver in November 2007. Check out the conference at
My presentations are:

SharePoint 101

SharePoint 2007 Advanced Development

WebParts for SharePoint 2007

Wednesday, February 13, 2008

How to enable session state in SharePoint WSS 3.0?

Before you can use sessions you first have to enable the session state module in the web.config file in a WSS 3.0 sharepoint site. Just uncomment the following line:

<add name="Session" type="System.Web.SessionState.SessionStateModule"/>

After that you can use the session object like you'll normally do with any ASP.NET web applications.