<?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"
	>
<channel>
	<title>Comments on: ASP.NET 2.0 name mangling</title>
	<atom:link href="http://uzair.nairang.org/articles/2005/10/14/asp-net-2-0-name-mangling/feed/" rel="self" type="application/rss+xml" />
	<link>http://uzair.nairang.org/articles/2005/10/14/asp-net-2-0-name-mangling/</link>
	<description>Where Uzairs Roam</description>
	<pubDate>Thu, 20 Nov 2008 10:08:16 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.2</generator>
		<item>
		<title>By: jrush</title>
		<link>http://uzair.nairang.org/articles/2005/10/14/asp-net-2-0-name-mangling/#comment-15504</link>
		<dc:creator>jrush</dc:creator>
		<pubDate>Mon, 02 Jul 2007 22:09:12 +0000</pubDate>
		<guid isPermaLink="false">#comment-15504</guid>
		<description>&lt;p&gt;Sorry that didn't convert over :&lt;/p&gt;

&lt;p&gt;var menuID = "&#60;%=MainMenu.ClientID%&#62;_tblMenuBar";&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Sorry that didn&#8217;t convert over :</p>
<p>var menuID = &#8220;&lt;%=MainMenu.ClientID%&gt;_tblMenuBar&#8221;;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jrush</title>
		<link>http://uzair.nairang.org/articles/2005/10/14/asp-net-2-0-name-mangling/#comment-15503</link>
		<dc:creator>jrush</dc:creator>
		<pubDate>Mon, 02 Jul 2007 22:06:17 +0000</pubDate>
		<guid isPermaLink="false">#comment-15503</guid>
		<description>&lt;p&gt;Well I just set this in my JS like so:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;_tblMenuBar";
// --&#38;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;But I've been very pissed off that MS did this. It would have taken very little effort to track the element IDs a diff way. Not only have they made it difficult to use getElementById (a staple in JS), but they hosed us when using #elementID in CSS. What were they thinking? Obviously they didn't. Thanks Microsoft - way to backtrack&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Well I just set this in my JS like so:</p>
<pre><code>_tblMenuBar";
// --&amp;gt;
</code></pre>
<p>But I&#8217;ve been very pissed off that MS did this. It would have taken very little effort to track the element IDs a diff way. Not only have they made it difficult to use getElementById (a staple in JS), but they hosed us when using #elementID in CSS. What were they thinking? Obviously they didn&#8217;t. Thanks Microsoft - way to backtrack</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joshua Coady</title>
		<link>http://uzair.nairang.org/articles/2005/10/14/asp-net-2-0-name-mangling/#comment-11659</link>
		<dc:creator>Joshua Coady</dc:creator>
		<pubDate>Mon, 09 Apr 2007 23:31:46 +0000</pubDate>
		<guid isPermaLink="false">#comment-11659</guid>
		<description>&lt;p&gt;Well, you can put the majority of the logic in a .js and expose it with a function that takes the id as input. Then you could use&lt;/p&gt;

&lt;p&gt;var mydata = dowork(”&#60;%= MyField.ClientID %&#62;”);&lt;/p&gt;

&lt;p&gt;But I digress because I dont like to use inline code blocks. Using the new client script manager has an advantage in that you can simple tell it to include the script elements instead of having to include them manually every time in your code.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Well, you can put the majority of the logic in a .js and expose it with a function that takes the id as input. Then you could use</p>
<p>var mydata = dowork(”&lt;%= MyField.ClientID %&gt;”);</p>
<p>But I digress because I dont like to use inline code blocks. Using the new client script manager has an advantage in that you can simple tell it to include the script elements instead of having to include them manually every time in your code.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jay Tavares</title>
		<link>http://uzair.nairang.org/articles/2005/10/14/asp-net-2-0-name-mangling/#comment-1058</link>
		<dc:creator>Jay Tavares</dc:creator>
		<pubDate>Thu, 28 Sep 2006 14:54:40 +0000</pubDate>
		<guid isPermaLink="false">#comment-1058</guid>
		<description>&lt;p&gt;True... if you use code blocks. Don't try to seperate your javascript into its own file. :o&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>True&#8230; if you use code blocks. Don&#8217;t try to seperate your javascript into its own file. :o</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Marc Fearby</title>
		<link>http://uzair.nairang.org/articles/2005/10/14/asp-net-2-0-name-mangling/#comment-416</link>
		<dc:creator>Marc Fearby</dc:creator>
		<pubDate>Tue, 19 Sep 2006 10:08:24 +0000</pubDate>
		<guid isPermaLink="false">#comment-416</guid>
		<description>&lt;p&gt;Why go to all the bother of declaring a ClientScriptManager when you could just embed the following inside your own script block within the .aspx itself?&lt;/p&gt;

&lt;p&gt;var MyField = document.getElementById("&#60;%= MyField.ClientID %&#62;");&lt;/p&gt;

&lt;p&gt;I'm relatively new to ASP.NET, so I could be missing something here, but ClientScriptManager seems like an oversized sledge-hammer for a very simple job.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Why go to all the bother of declaring a ClientScriptManager when you could just embed the following inside your own script block within the .aspx itself?</p>
<p>var MyField = document.getElementById(&#8221;&lt;%= MyField.ClientID %&gt;&#8221;);</p>
<p>I&#8217;m relatively new to ASP.NET, so I could be missing something here, but ClientScriptManager seems like an oversized sledge-hammer for a very simple job.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Dynamic Page Served (once) in 1.262 seconds -->
