<?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/"
		>
<channel>
	<title>Comments on: Getting rid of the Naming Container in asp.net 2.0</title>
	<atom:link href="http://www.gljakal.com/blog/2007/09/12/getting-rid-of-the-naming-container-in-aspnet-20/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.gljakal.com/blog/2007/09/12/getting-rid-of-the-naming-container-in-aspnet-20/</link>
	<description></description>
	<lastBuildDate>Wed, 30 Nov 2011 05:52:11 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.3</generator>
	<item>
		<title>By: Angeles</title>
		<link>http://www.gljakal.com/blog/2007/09/12/getting-rid-of-the-naming-container-in-aspnet-20/comment-page-1/#comment-40002</link>
		<dc:creator>Angeles</dc:creator>
		<pubDate>Wed, 30 Nov 2011 05:52:11 +0000</pubDate>
		<guid isPermaLink="false">http://gljakal.com/blog/2007/09/12/getting-rid-of-the-naming-container-in-aspnet-20/#comment-40002</guid>
		<description>Very good information and facts! I have been searching for everything such as this for some time currently. Regards!</description>
		<content:encoded><![CDATA[<p>Very good information and facts! I have been searching for everything such as this for some time currently. Regards!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Malik ULU</title>
		<link>http://www.gljakal.com/blog/2007/09/12/getting-rid-of-the-naming-container-in-aspnet-20/comment-page-1/#comment-40001</link>
		<dc:creator>Malik ULU</dc:creator>
		<pubDate>Mon, 14 Nov 2011 17:40:52 +0000</pubDate>
		<guid isPermaLink="false">http://gljakal.com/blog/2007/09/12/getting-rid-of-the-naming-container-in-aspnet-20/#comment-40001</guid>
		<description>Hi buddy, your solution is great, simple but very great. Thanks, regards.</description>
		<content:encoded><![CDATA[<p>Hi buddy, your solution is great, simple but very great. Thanks, regards.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dantdrurn</title>
		<link>http://www.gljakal.com/blog/2007/09/12/getting-rid-of-the-naming-container-in-aspnet-20/comment-page-1/#comment-39416</link>
		<dc:creator>Dantdrurn</dc:creator>
		<pubDate>Thu, 10 Feb 2011 17:07:46 +0000</pubDate>
		<guid isPermaLink="false">http://gljakal.com/blog/2007/09/12/getting-rid-of-the-naming-container-in-aspnet-20/#comment-39416</guid>
		<description>Just browsing your blog, how long have you had it? I love the design.(Charlxtz)</description>
		<content:encoded><![CDATA[<p>Just browsing your blog, how long have you had it? I love the design.(Charlxtz)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: YourGranMo</title>
		<link>http://www.gljakal.com/blog/2007/09/12/getting-rid-of-the-naming-container-in-aspnet-20/comment-page-1/#comment-38213</link>
		<dc:creator>YourGranMo</dc:creator>
		<pubDate>Mon, 03 Jan 2011 03:03:52 +0000</pubDate>
		<guid isPermaLink="false">http://gljakal.com/blog/2007/09/12/getting-rid-of-the-naming-container-in-aspnet-20/#comment-38213</guid>
		<description>HAPPY NEW YEAR! Brothers ;))   
   
And good luck to all of you!</description>
		<content:encoded><![CDATA[<p>HAPPY NEW YEAR! Brothers <img src='http://www.gljakal.com/blog/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> )   </p>
<p>And good luck to all of you!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: glJakaL</title>
		<link>http://www.gljakal.com/blog/2007/09/12/getting-rid-of-the-naming-container-in-aspnet-20/comment-page-1/#comment-23607</link>
		<dc:creator>glJakaL</dc:creator>
		<pubDate>Wed, 11 Mar 2009 08:43:23 +0000</pubDate>
		<guid isPermaLink="false">http://gljakal.com/blog/2007/09/12/getting-rid-of-the-naming-container-in-aspnet-20/#comment-23607</guid>
		<description>Chris: This blog is running on Wordpress, so I wouldn&#039;t worry about hacking too much :)

Your solution is of course a valid alternative, however some of us prefer to keep HTML and javascript in separate files instead of throwing it all together.</description>
		<content:encoded><![CDATA[<p>Chris: This blog is running on WordPress, so I wouldn&#8217;t worry about hacking too much <img src='http://www.gljakal.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Your solution is of course a valid alternative, however some of us prefer to keep HTML and javascript in separate files instead of throwing it all together.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris</title>
		<link>http://www.gljakal.com/blog/2007/09/12/getting-rid-of-the-naming-container-in-aspnet-20/comment-page-1/#comment-23521</link>
		<dc:creator>Chris</dc:creator>
		<pubDate>Fri, 06 Mar 2009 01:04:58 +0000</pubDate>
		<guid isPermaLink="false">http://gljakal.com/blog/2007/09/12/getting-rid-of-the-naming-container-in-aspnet-20/#comment-23521</guid>
		<description>I&#039;ll convert the html tags manually... did you write this webpage yourself?  You really gotta HtmlEncode your text input before processing it... you&#039;re just asking for it to be hacked.

Anyway, you can inject code directly into the markup like so:

&lt;pre&gt;
getElementById(’&lt;%= TextBox1.ClientID %&gt;?).
&lt;/pre&gt;
You can also call functions in the codebehind file something like this:
&lt;pre&gt;
protected string MyText()
{
return &quot;Yes!&quot;;
}

&lt;span&gt;What you say? &lt;%= MyText() %&gt;&lt;/span&gt;
&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>I&#8217;ll convert the html tags manually&#8230; did you write this webpage yourself?  You really gotta HtmlEncode your text input before processing it&#8230; you&#8217;re just asking for it to be hacked.</p>
<p>Anyway, you can inject code directly into the markup like so:</p>
<pre>
getElementById(’< %= TextBox1.ClientID %>?).
</pre>
<p>You can also call functions in the codebehind file something like this:</p>
<pre>
protected string MyText()
{
return "Yes!";
}

<span>What you say? < %= MyText() %></span>
</pre>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris</title>
		<link>http://www.gljakal.com/blog/2007/09/12/getting-rid-of-the-naming-container-in-aspnet-20/comment-page-1/#comment-23520</link>
		<dc:creator>Chris</dc:creator>
		<pubDate>Fri, 06 Mar 2009 01:00:16 +0000</pubDate>
		<guid isPermaLink="false">http://gljakal.com/blog/2007/09/12/getting-rid-of-the-naming-container-in-aspnet-20/#comment-23520</guid>
		<description>It seems this textbox does not use HtmlEncode and so the code I was going to suggest seems to break your page.</description>
		<content:encoded><![CDATA[<p>It seems this textbox does not use HtmlEncode and so the code I was going to suggest seems to break your page.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Cam Woods</title>
		<link>http://www.gljakal.com/blog/2007/09/12/getting-rid-of-the-naming-container-in-aspnet-20/comment-page-1/#comment-23488</link>
		<dc:creator>Cam Woods</dc:creator>
		<pubDate>Wed, 04 Mar 2009 00:58:09 +0000</pubDate>
		<guid isPermaLink="false">http://gljakal.com/blog/2007/09/12/getting-rid-of-the-naming-container-in-aspnet-20/#comment-23488</guid>
		<description>This article was helpful in making sure my client-side controls were named as expected so that my javascript didn&#039;t break. However, as mentioned, it breaks postbacks since the resulting client-side id&#039;s don&#039;t match the server-side control hierarchy.

I eventually got all that working by deriving my own MasterPage and ContentPlaceHolder controls and by juggling the control hierarchy during the page PreInit. I ended up writing about it and providing the source code necessary (C#).

Hope this helps. Feel free to copy the code:

http://www.netquarry.com/index.php/2009/03/master-pages-ajax-and-javascript-10292/</description>
		<content:encoded><![CDATA[<p>This article was helpful in making sure my client-side controls were named as expected so that my javascript didn&#8217;t break. However, as mentioned, it breaks postbacks since the resulting client-side id&#8217;s don&#8217;t match the server-side control hierarchy.</p>
<p>I eventually got all that working by deriving my own MasterPage and ContentPlaceHolder controls and by juggling the control hierarchy during the page PreInit. I ended up writing about it and providing the source code necessary (C#).</p>
<p>Hope this helps. Feel free to copy the code:</p>
<p><a href="http://www.netquarry.com/index.php/2009/03/master-pages-ajax-and-javascript-10292/" rel="nofollow">http://www.netquarry.com/index.php/2009/03/master-pages-ajax-and-javascript-10292/</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: commodore spiele</title>
		<link>http://www.gljakal.com/blog/2007/09/12/getting-rid-of-the-naming-container-in-aspnet-20/comment-page-1/#comment-23449</link>
		<dc:creator>commodore spiele</dc:creator>
		<pubDate>Sat, 28 Feb 2009 21:45:03 +0000</pubDate>
		<guid isPermaLink="false">http://gljakal.com/blog/2007/09/12/getting-rid-of-the-naming-container-in-aspnet-20/#comment-23449</guid>
		<description>Great article, adding it to my bookmarks!</description>
		<content:encoded><![CDATA[<p>Great article, adding it to my bookmarks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Carlos</title>
		<link>http://www.gljakal.com/blog/2007/09/12/getting-rid-of-the-naming-container-in-aspnet-20/comment-page-1/#comment-23290</link>
		<dc:creator>Carlos</dc:creator>
		<pubDate>Sun, 15 Feb 2009 23:23:40 +0000</pubDate>
		<guid isPermaLink="false">http://gljakal.com/blog/2007/09/12/getting-rid-of-the-naming-container-in-aspnet-20/#comment-23290</guid>
		<description>It is supposed that Visual Studio 2010 will come with a solution to this, letting you choose how you want to identify your controls in the client-side.

I don&#039;t wanna wait of course! It is kind of frustrating...</description>
		<content:encoded><![CDATA[<p>It is supposed that Visual Studio 2010 will come with a solution to this, letting you choose how you want to identify your controls in the client-side.</p>
<p>I don&#8217;t wanna wait of course! It is kind of frustrating&#8230;</p>
]]></content:encoded>
	</item>
</channel>
</rss>

