<?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>say@syedmuhammad &#187; asp.net</title>
	<atom:link href="http://say.syedmuhammad.com/index.php/tag/aspnet/feed/" rel="self" type="application/rss+xml" />
	<link>http://say.syedmuhammad.com</link>
	<description>my say in technology</description>
	<lastBuildDate>Sat, 20 Mar 2010 17:31:06 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Include javascript programmatically using ASP.NET 2.0</title>
		<link>http://say.syedmuhammad.com/index.php/2007/09/27/include-javascript-programmatically-using-aspnet-20/</link>
		<comments>http://say.syedmuhammad.com/index.php/2007/09/27/include-javascript-programmatically-using-aspnet-20/#comments</comments>
		<pubDate>Thu, 27 Sep 2007 07:47:50 +0000</pubDate>
		<dc:creator>syedmuhammad</dc:creator>
				<category><![CDATA[code snippet]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[asp.net]]></category>

		<guid isPermaLink="false">http://say.syedmuhammad.com/index.php/2007/09/27/include-javascript-programmatically-using-aspnet-20/</guid>
		<description><![CDATA[The thing is I want to include javascript into the page programmatically mainly because I want to use the full url for the source of the javascript.
So I put these on the code behind during the OnLoad event.

int i = 1;
HtmlGenericControl script = new HtmlGenericControl("script");
script.Attributes.Add("type","text/javascript");
script.Attributes.Add("src",Page.ResolveUrl("~/your url"));
//add after the title tag
Page.Header.AddAt(i++,script);

]]></description>
			<content:encoded><![CDATA[<p>The thing is I want to include javascript into the page programmatically mainly because I want to use the full url for the source of the javascript.</p>
<p>So I put these on the code behind during the OnLoad event.<br />
<code><br />
int i = 1;<br />
HtmlGenericControl script = new HtmlGenericControl("script");<br />
script.Attributes.Add("type","text/javascript");<br />
script.Attributes.Add("src",Page.ResolveUrl("~/your url"));<br />
//add after the title tag<br />
Page.Header.AddAt(i++,script);<br />
</code></p>
]]></content:encoded>
			<wfw:commentRss>http://say.syedmuhammad.com/index.php/2007/09/27/include-javascript-programmatically-using-aspnet-20/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
