Wednesday, May 21, 2008

Now available on video

The Sydney SharePoint Forum was held in Sydney on May 6th. You can now watch videos of some of the presentations from the event site. Go to the Resources page and click the View link for the relevant presentation. My session with Allyson Skene is here – Find it faster with MOSS 2007 Search. It's true what they say about the camera adding ten pounds – I'm much slimmer in real life.

Thursday, May 15, 2008

Tag – you’re it!

I was putting together an ASP.net page that was retrieving information from a database. This page is going to be indexed by SharePoint. So to make sure that the search experience could be as good as possible, I wanted to make sure that the page includes useful metadata tags.

While trying to figure out the best way of setting the metadata, I came across the HtmlMeta class. This allows you to programmatically add your meta tags to your content:


HtmlMeta metaTag = new
HtmlMeta();


HtmlHead head = (HtmlHead)Page.Header;

metaTag.Name = "DC.Title";

metaTag.Content = "Tag – you're it";

head.Controls.Add(metaTag);


 

Neat, huh?