<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments on: SiteMap External Link &#8220;not a valid virtual path&#8221;</title>
	<atom:link href="http://waxtadpole.wordpress.com/2008/05/02/sitemap/feed/" rel="self" type="application/rss+xml" />
	<link>http://waxtadpole.wordpress.com/2008/05/02/sitemap/</link>
	<description>.NET Journeys In Pain</description>
	<lastBuildDate>Wed, 21 Oct 2009 10:43:04 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Chris Mulvey</title>
		<link>http://waxtadpole.wordpress.com/2008/05/02/sitemap/#comment-63</link>
		<dc:creator>Chris Mulvey</dc:creator>
		<pubDate>Thu, 18 Dec 2008 16:27:06 +0000</pubDate>
		<guid isPermaLink="false">http://waxtadpole.wordpress.com/?p=5#comment-63</guid>
		<description>I used this method to inject a javascript call from the sitemap to show an Ajax modelPopupextender from the client-side:

First, I added some js to a user control on my page (contains the model popup):
function showAboutHelp() { 
    var myBehavior = $find(&quot;clientBehavior&quot;); 
    myBehavior.show(); 

Then, I added a dummy page...
at: ~/Navigation 
called:  CallJavaScriptFromSiteMap.aspx

In my ModeuleInit...:
moduleNode = New SiteMapNodeInfo(&quot;About&quot;, &quot;~/Navigation/CallJavaScriptFromSiteMap.aspx?f=showAboutHelp&quot;, &quot;About&quot;, &quot;About Help&quot;)

In my menu_DataBound code-behind method:
            If (e.Item.Text.Contains(&quot;CallJavaScriptFromSiteMap&quot;)) Then
                Dim jsFunctionIndex As Integer = e.Item.Text.IndexOf(&quot;:&quot;) + 1
                Dim jsFunction As String = e.Item.Text.Substring(jsFunctionIndex)
                e.Item.NavigateUrl = &quot;JavaScript:&quot; + &quot;();&quot;
            End If

Very useful...</description>
		<content:encoded><![CDATA[<p>I used this method to inject a javascript call from the sitemap to show an Ajax modelPopupextender from the client-side:</p>
<p>First, I added some js to a user control on my page (contains the model popup):<br />
function showAboutHelp() {<br />
    var myBehavior = $find(&#8220;clientBehavior&#8221;);<br />
    myBehavior.show(); </p>
<p>Then, I added a dummy page&#8230;<br />
at: ~/Navigation<br />
called:  CallJavaScriptFromSiteMap.aspx</p>
<p>In my ModeuleInit&#8230;:<br />
moduleNode = New SiteMapNodeInfo(&#8220;About&#8221;, &#8220;~/Navigation/CallJavaScriptFromSiteMap.aspx?f=showAboutHelp&#8221;, &#8220;About&#8221;, &#8220;About Help&#8221;)</p>
<p>In my menu_DataBound code-behind method:<br />
            If (e.Item.Text.Contains(&#8220;CallJavaScriptFromSiteMap&#8221;)) Then<br />
                Dim jsFunctionIndex As Integer = e.Item.Text.IndexOf(&#8220;:&#8221;) + 1<br />
                Dim jsFunction As String = e.Item.Text.Substring(jsFunctionIndex)<br />
                e.Item.NavigateUrl = &#8220;JavaScript:&#8221; + &#8220;();&#8221;<br />
            End If</p>
<p>Very useful&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: baraholka1</title>
		<link>http://waxtadpole.wordpress.com/2008/05/02/sitemap/#comment-32</link>
		<dc:creator>baraholka1</dc:creator>
		<pubDate>Tue, 08 Jul 2008 23:21:50 +0000</pubDate>
		<guid isPermaLink="false">http://waxtadpole.wordpress.com/?p=5#comment-32</guid>
		<description>Hiya Sheir,

LinkNames is just a static class that we put in the &quot;Common&quot; dll which is used by all the projects in the application:

 public static class LinkNames
    {
        public static class CityScope
        {
            public const string Name = &quot;City Scope&quot;;
            // City Scope Link is an external link
            public static string URL
            {
                get
                {
                    return String.Format(&quot;~/Redirect.aspx?url={0}&quot;, HttpUtility.UrlEncode(ConfigurationManager.AppSettings[&quot;CityScopeLink&quot;]));
                }
            }
        }

Regards,

Baraholka</description>
		<content:encoded><![CDATA[<p>Hiya Sheir,</p>
<p>LinkNames is just a static class that we put in the &#8220;Common&#8221; dll which is used by all the projects in the application:</p>
<p> public static class LinkNames<br />
    {<br />
        public static class CityScope<br />
        {<br />
            public const string Name = &#8220;City Scope&#8221;;<br />
            // City Scope Link is an external link<br />
            public static string URL<br />
            {<br />
                get<br />
                {<br />
                    return String.Format(&#8220;~/Redirect.aspx?url={0}&#8221;, HttpUtility.UrlEncode(ConfigurationManager.AppSettings["CityScopeLink"]));<br />
                }<br />
            }<br />
        }</p>
<p>Regards,</p>
<p>Baraholka</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sheir</title>
		<link>http://waxtadpole.wordpress.com/2008/05/02/sitemap/#comment-31</link>
		<dc:creator>Sheir</dc:creator>
		<pubDate>Mon, 07 Jul 2008 15:50:40 +0000</pubDate>
		<guid isPermaLink="false">http://waxtadpole.wordpress.com/?p=5#comment-31</guid>
		<description>How are you defining your LinkNames class with the links and where do you put that class?
In the Shell module??</description>
		<content:encoded><![CDATA[<p>How are you defining your LinkNames class with the links and where do you put that class?<br />
In the Shell module??</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Using SiteMap for external links and additional attributes &#171; Left Lobe Logic</title>
		<link>http://waxtadpole.wordpress.com/2008/05/02/sitemap/#comment-2</link>
		<dc:creator>Using SiteMap for external links and additional attributes &#171; Left Lobe Logic</dc:creator>
		<pubDate>Thu, 08 May 2008 11:37:39 +0000</pubDate>
		<guid isPermaLink="false">http://waxtadpole.wordpress.com/?p=5#comment-2</guid>
		<description>[...] to a few external websites. The WCSF uses a custom SiteMapProvider that is part of its framework. A coworker highlighted how he solved the problem by simply overriding the URL as part of the TreeView (our [...]</description>
		<content:encoded><![CDATA[<p>[...] to a few external websites. The WCSF uses a custom SiteMapProvider that is part of its framework. A coworker highlighted how he solved the problem by simply overriding the URL as part of the TreeView (our [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>
