<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://mises.org/Community/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>The Mises Tech Update : ASP.net, Feed</title><link>http://mises.org/Community/blogs/misestech/archive/tags/ASP.net/Feed/default.aspx</link><description>Tags: ASP.net, Feed</description><dc:language>en</dc:language><generator>CommunityServer 2008.5 SP2 (Build: 40407.4157)</generator><item><title>ASP.Net: Adding feed auto-discovery &amp; meta tags to the page header</title><link>http://mises.org/Community/blogs/misestech/archive/2007/09/21/adding-feed-auto-discovery-links-amp-meta-tags-to-the-page-header.aspx</link><pubDate>Fri, 21 Sep 2007 06:27:00 GMT</pubDate><guid isPermaLink="false">944abf2b-d1be-4bf2-990d-438cb0e377e9:119</guid><dc:creator>HeroicLife</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://mises.org/Community/blogs/misestech/rsscomments.aspx?PostID=119</wfw:commentRss><wfw:comment xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://mises.org/Community/blogs/misestech/commentapi.aspx?PostID=119</wfw:comment><comments>http://mises.org/Community/blogs/misestech/archive/2007/09/21/adding-feed-auto-discovery-links-amp-meta-tags-to-the-page-header.aspx#comments</comments><description>&lt;p&gt;Every now and then, I will post code snippets which others might find useful.&amp;nbsp; Here is one:&lt;/p&gt;&lt;p&gt;How to add an RSS auto-discovery meta tag to the page header:&lt;br /&gt; &lt;/p&gt;

&lt;pre&gt; Private Sub AddRSSLink(ByVal title As String, ByVal URL As String)&lt;br /&gt;        Dim link As New HtmlLink&lt;br /&gt;        link.Attributes.Add(&amp;quot;type&amp;quot;, &amp;quot;application/rss+xml&amp;quot;)&lt;br /&gt;        link.Attributes.Add(&amp;quot;rel&amp;quot;, &amp;quot;alternate&amp;quot;)&lt;br /&gt;        link.Attributes.Add(&amp;quot;title&amp;quot;, title)&lt;br /&gt;        link.Attributes.Add(&amp;quot;href&amp;quot;, URL)&lt;br /&gt;        Page.Header.Controls.Add(link)&lt;br /&gt;    End Sub&lt;/pre&gt;
&lt;p&gt;
What about meta tags?
&lt;/p&gt;

&lt;pre&gt;Dim hm As New HtmlMeta()&lt;br /&gt;hm.Name = &amp;quot;Description&amp;quot; &amp;#39; Or Keywords&lt;br /&gt;hm.Content = &amp;quot;Description...&amp;quot;&lt;br /&gt;Page.Header.Controls.Add(hm) &lt;br /&gt;&lt;/pre&gt;

&lt;p&gt;
Why not just put this in the .aspx you ask?  Check out the tags &lt;a href="http://www.mises.org/story/2703"&gt;on this page&lt;/a&gt; for the answer.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://mises.org/Community/aggbug.aspx?PostID=119" width="1" height="1"&gt;</description><category domain="http://mises.org/Community/blogs/misestech/archive/tags/code/default.aspx">code</category><category domain="http://mises.org/Community/blogs/misestech/archive/tags/ASP.net/default.aspx">ASP.net</category><category domain="http://mises.org/Community/blogs/misestech/archive/tags/Feed/default.aspx">Feed</category></item></channel></rss>