<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>anchorpoint&#039;s blog</title>
	<atom:link href="http://vspug.com/anchorpoint/feed/" rel="self" type="application/rss+xml" />
	<link>http://vspug.com/anchorpoint</link>
	<description>Just another VSPUG - Virtual SharePoint User Group weblog</description>
	<lastBuildDate>Thu, 31 May 2007 19:17:00 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Welcome to anchorPoint&#039;s blog</title>
		<link>http://vspug.com/anchorpoint/2007/05/31/welcome-to-anchorpoint-s-blog/</link>
		<comments>http://vspug.com/anchorpoint/2007/05/31/welcome-to-anchorpoint-s-blog/#comments</comments>
		<pubDate>Thu, 31 May 2007 19:17:00 +0000</pubDate>
		<dc:creator>anchorpoint</dc:creator>
		
		<guid isPermaLink="false"></guid>
		<description><![CDATA[Hi,
Welcome to my new blog. This blog will mainly be concerned around SharePoint-related stuff, quirks and findings  
So without further ado I bid you welcome.
Kind regards
anchorPoint

]]></description>
			<content:encoded><![CDATA[<p>Hi,</p>
<p>Welcome to my new blog. This blog will mainly be concerned around SharePoint-related stuff, quirks and findings <img src='http://vspug.com/anchorpoint/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p>So without further ado I bid you welcome.</p>
<p>Kind regards</p>
<p>anchorPoint</p>
<p><img src="/aggbug.aspx?PostID=28183" width="1" height="1" alt="  " /></p>
]]></content:encoded>
			<wfw:commentRss>http://vspug.com/anchorpoint/2007/05/31/welcome-to-anchorpoint-s-blog/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Welcome to anchorPoint&#039;s blog</title>
		<link>http://vspug.com/anchorpoint/2007/05/31/welcome-to-anchorpoint-s-blog/</link>
		<comments>http://vspug.com/anchorpoint/2007/05/31/welcome-to-anchorpoint-s-blog/#comments</comments>
		<pubDate>Thu, 31 May 2007 19:17:00 +0000</pubDate>
		<dc:creator>anchorpoint</dc:creator>
		
		<guid isPermaLink="false"></guid>
		<description><![CDATA[Hi,
Welcome to my new blog. This blog will mainly be concerned around SharePoint-related stuff, quirks and findings  
So without further ado I bid you welcome.
Kind regards
anchorPoint

]]></description>
			<content:encoded><![CDATA[<p>Hi,</p>
<p>Welcome to my new blog. This blog will mainly be concerned around SharePoint-related stuff, quirks and findings <img src='http://vspug.com/anchorpoint/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p>So without further ado I bid you welcome.</p>
<p>Kind regards</p>
<p>anchorPoint</p>
<p><img src="/aggbug.aspx?PostID=28183" width="1" height="1" alt="  " /></p>
]]></content:encoded>
			<wfw:commentRss>http://vspug.com/anchorpoint/2007/05/31/welcome-to-anchorpoint-s-blog/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Tab highlighting in Top Navigation Bar</title>
		<link>http://vspug.com/anchorpoint/2007/05/31/tab-highlighting-in-top-navigation-bar/</link>
		<comments>http://vspug.com/anchorpoint/2007/05/31/tab-highlighting-in-top-navigation-bar/#comments</comments>
		<pubDate>Thu, 31 May 2007 19:12:00 +0000</pubDate>
		<dc:creator>anchorpoint</dc:creator>
		
		<guid isPermaLink="false"></guid>
		<description><![CDATA[In a solution I&#39;m building I was met with the task of creating a web site programmaticly and no sweat I thought. The site&#160;creation itself was a breeze, but I wsa met a bit of a challange when trying to create navigation tabs.
The parent web site would have a tab on the top navigation bar [...]]]></description>
			<content:encoded><![CDATA[<p>In a solution I&#39;m building I was met with the task of creating a web site programmaticly and no sweat I thought. The site&nbsp;creation itself was a breeze, but I wsa met a bit of a challange when trying to create navigation tabs.</p>
<p>The parent web site would have a tab on the top navigation bar pointing to the new web site, and the newly created web site would have a tab as well that was highlighted in the top navigation when the user was visiting the site.</p>
<p>No problem I thought again. So I happily went and created the tab to the new site on the parent web site and told the newly created website to just inherit navigation. But to my surprise the tab on the newly created site was not highlighted when I was visiting it. This kinda puzzled me.</p>
<p>I had told the top navigation bar of the parent web site to use this node:</p>
<p><font color="#008080" size="2">SPNavigationNode</font><font size="2"> navigationNode = </font><font color="#0000ff" size="2">new</font><font size="2"> </font><font color="#008080" size="2">SPNavigationNode</font><font size="2">(</font><font color="#800000" size="2">&quot;My Web Site&quot;</font><font size="2">, </font><font color="#800000" size="2">&quot;/MyWebSite&quot;</font><font size="2">);</font></p>
<p><font size="2">But apparently that wasn&#39;t enough to highlight the tab.</font></p>
<p>After some more efford I finally figured out that it had to be:</p>
<p><font color="#008080" size="2">SPNavigationNode</font><font size="2"> navigationNode = </font><font color="#0000ff" size="2">new</font><font size="2"> </font><font color="#008080" size="2">SPNavigationNode</font><font size="2">(</font><font color="#800000" size="2">&quot;My Web Site&quot;</font><font size="2">, </font><font color="#800000" size="2">&quot;/MyWebSite/default.aspx&quot;</font><font size="2">);</p>
<p></font><font size="2">Yeah .. you have to remember default.aspx. Anyway the code to create a child web site with parent top navigation and tab highlighting would be:</font></p>
<p><font size="2">
<p></font><font color="#0000ff" size="2">using</font><font size="2"> (</font><font color="#008080" size="2">SPSite</font><font size="2"> site = </font><font color="#0000ff" size="2">new</font><font size="2"> </font><font color="#008080" size="2">SPSite</font><font size="2">(siteUrl))</p>
<p>{</p>
<p></font><font color="#0000ff" size="2">using</font><font size="2"> (</font><font color="#008080" size="2">SPWeb</font><font size="2"> web = site.AllWebs.Add(</font><font color="#800000" size="2">&quot;/MyWebSite&quot;</font><font size="2">, </font><font color="#800000" size="2">&quot;My Web Site&quot;</font><font size="2">, </font><font color="#800000" size="2">&quot;&quot;</font><font size="2">, 1033, </font><font color="#800000" size="2">&quot;STS#1&quot;</font><font size="2">, </font><font color="#0000ff" size="2">false</font><font size="2">, </font><font color="#0000ff" size="2">false</font><font size="2">))</p>
<p>{</p>
<p></font><font color="#008080" size="2">SPNavigationNode</font><font size="2"> navigationNode = </font><font color="#0000ff" size="2">new</font><font size="2"> </font><font color="#008080" size="2">SPNavigationNode</font><font size="2">(</font><font color="#800000" size="2">&quot;My Web Site&quot;</font><font size="2">, </font><font color="#800000" size="2">&quot;/MyWebSite/default.aspx&quot;</font><font size="2">);</p>
<p></font><font color="#008080" size="2">SPNavigation</font><font size="2"> navigation = web.ParentWeb.Navigation;</p>
<p></font><font color="#008080" size="2">SPNavigationNodeCollection</font><font size="2"> topNavigationNodeCollection = navigation.TopNavigationBar;</p>
<p>topNavigationNodeCollection.AddAsLast(navigationNode);</p>
<p>web.Navigation.UseShared = </font><font color="#0000ff" size="2">true</font><font size="2">;</p>
<p>web.Update();</p>
<p>}</p>
<p>}</p>
<p>Happy SharePoint hacking.</p>
<p></font><img src="/aggbug.aspx?PostID=28182" width="1" height="1" alt="  " /></p>
]]></content:encoded>
			<wfw:commentRss>http://vspug.com/anchorpoint/2007/05/31/tab-highlighting-in-top-navigation-bar/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Tab highlighting in Top Navigation Bar</title>
		<link>http://vspug.com/anchorpoint/2007/05/31/tab-highlighting-in-top-navigation-bar/</link>
		<comments>http://vspug.com/anchorpoint/2007/05/31/tab-highlighting-in-top-navigation-bar/#comments</comments>
		<pubDate>Thu, 31 May 2007 19:12:00 +0000</pubDate>
		<dc:creator>anchorpoint</dc:creator>
		
		<guid isPermaLink="false"></guid>
		<description><![CDATA[In a solution I&#39;m building I was met with the task of creating a web site programmaticly and no sweat I thought. The site&#160;creation itself was a breeze, but I wsa met a bit of a challange when trying to create navigation tabs.
The parent web site would have a tab on the top navigation bar [...]]]></description>
			<content:encoded><![CDATA[<p>In a solution I&#39;m building I was met with the task of creating a web site programmaticly and no sweat I thought. The site&nbsp;creation itself was a breeze, but I wsa met a bit of a challange when trying to create navigation tabs.</p>
<p>The parent web site would have a tab on the top navigation bar pointing to the new web site, and the newly created web site would have a tab as well that was highlighted in the top navigation when the user was visiting the site.</p>
<p>No problem I thought again. So I happily went and created the tab to the new site on the parent web site and told the newly created website to just inherit navigation. But to my surprise the tab on the newly created site was not highlighted when I was visiting it. This kinda puzzled me.</p>
<p>I had told the top navigation bar of the parent web site to use this node:</p>
<p><font color="#008080" size="2">SPNavigationNode</font><font size="2"> navigationNode = </font><font color="#0000ff" size="2">new</font><font size="2"> </font><font color="#008080" size="2">SPNavigationNode</font><font size="2">(</font><font color="#800000" size="2">&quot;My Web Site&quot;</font><font size="2">, </font><font color="#800000" size="2">&quot;/MyWebSite&quot;</font><font size="2">);</font></p>
<p><font size="2">But apparently that wasn&#39;t enough to highlight the tab.</font></p>
<p>After some more efford I finally figured out that it had to be:</p>
<p><font color="#008080" size="2">SPNavigationNode</font><font size="2"> navigationNode = </font><font color="#0000ff" size="2">new</font><font size="2"> </font><font color="#008080" size="2">SPNavigationNode</font><font size="2">(</font><font color="#800000" size="2">&quot;My Web Site&quot;</font><font size="2">, </font><font color="#800000" size="2">&quot;/MyWebSite/default.aspx&quot;</font><font size="2">);</p>
<p></font><font size="2">Yeah .. you have to remember default.aspx. Anyway the code to create a child web site with parent top navigation and tab highlighting would be:</font></p>
<p><font size="2">
<p></font><font color="#0000ff" size="2">using</font><font size="2"> (</font><font color="#008080" size="2">SPSite</font><font size="2"> site = </font><font color="#0000ff" size="2">new</font><font size="2"> </font><font color="#008080" size="2">SPSite</font><font size="2">(siteUrl))</p>
<p>{</p>
<p></font><font color="#0000ff" size="2">using</font><font size="2"> (</font><font color="#008080" size="2">SPWeb</font><font size="2"> web = site.AllWebs.Add(</font><font color="#800000" size="2">&quot;/MyWebSite&quot;</font><font size="2">, </font><font color="#800000" size="2">&quot;My Web Site&quot;</font><font size="2">, </font><font color="#800000" size="2">&quot;&quot;</font><font size="2">, 1033, </font><font color="#800000" size="2">&quot;STS#1&quot;</font><font size="2">, </font><font color="#0000ff" size="2">false</font><font size="2">, </font><font color="#0000ff" size="2">false</font><font size="2">))</p>
<p>{</p>
<p></font><font color="#008080" size="2">SPNavigationNode</font><font size="2"> navigationNode = </font><font color="#0000ff" size="2">new</font><font size="2"> </font><font color="#008080" size="2">SPNavigationNode</font><font size="2">(</font><font color="#800000" size="2">&quot;My Web Site&quot;</font><font size="2">, </font><font color="#800000" size="2">&quot;/MyWebSite/default.aspx&quot;</font><font size="2">);</p>
<p></font><font color="#008080" size="2">SPNavigation</font><font size="2"> navigation = web.ParentWeb.Navigation;</p>
<p></font><font color="#008080" size="2">SPNavigationNodeCollection</font><font size="2"> topNavigationNodeCollection = navigation.TopNavigationBar;</p>
<p>topNavigationNodeCollection.AddAsLast(navigationNode);</p>
<p>web.Navigation.UseShared = </font><font color="#0000ff" size="2">true</font><font size="2">;</p>
<p>web.Update();</p>
<p>}</p>
<p>}</p>
<p>Happy SharePoint hacking.</p>
<p></font><img src="/aggbug.aspx?PostID=28182" width="1" height="1" alt="  " /></p>
]]></content:encoded>
			<wfw:commentRss>http://vspug.com/anchorpoint/2007/05/31/tab-highlighting-in-top-navigation-bar/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
