<?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>Sat, 10 Jul 2010 17:42:24 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
	<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>
	<item>
		<title>By: MMN</title>
		<link>http://www.gljakal.com/blog/2007/09/12/getting-rid-of-the-naming-container-in-aspnet-20/comment-page-1/#comment-23264</link>
		<dc:creator>MMN</dc:creator>
		<pubDate>Sat, 14 Feb 2009 20:59:10 +0000</pubDate>
		<guid isPermaLink="false">http://gljakal.com/blog/2007/09/12/getting-rid-of-the-naming-container-in-aspnet-20/#comment-23264</guid>
		<description>I too can no longer access the text property, am i missing something??</description>
		<content:encoded><![CDATA[<p>I too can no longer access the text property, am i missing something??</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: cmpenney</title>
		<link>http://www.gljakal.com/blog/2007/09/12/getting-rid-of-the-naming-container-in-aspnet-20/comment-page-1/#comment-22633</link>
		<dc:creator>cmpenney</dc:creator>
		<pubDate>Fri, 09 Jan 2009 18:48:58 +0000</pubDate>
		<guid isPermaLink="false">http://gljakal.com/blog/2007/09/12/getting-rid-of-the-naming-container-in-aspnet-20/#comment-22633</guid>
		<description>I also can no longer access the text value of the control after postback. Is there a fix or a diferent way to get this information?</description>
		<content:encoded><![CDATA[<p>I also can no longer access the text value of the control after postback. Is there a fix or a diferent way to get this information?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alex Czarto</title>
		<link>http://www.gljakal.com/blog/2007/09/12/getting-rid-of-the-naming-container-in-aspnet-20/comment-page-1/#comment-22534</link>
		<dc:creator>Alex Czarto</dc:creator>
		<pubDate>Fri, 02 Jan 2009 23:00:07 +0000</pubDate>
		<guid isPermaLink="false">http://gljakal.com/blog/2007/09/12/getting-rid-of-the-naming-container-in-aspnet-20/#comment-22534</guid>
		<description>Another post on a similar topic, but using a different strategy (by overriding the ClientId property):
http://www.west-wind.com/WebLog/ShowPost.aspx?id=4605</description>
		<content:encoded><![CDATA[<p>Another post on a similar topic, but using a different strategy (by overriding the ClientId property):<br />
<a href="http://www.west-wind.com/WebLog/ShowPost.aspx?id=4605" rel="nofollow">http://www.west-wind.com/WebLog/ShowPost.aspx?id=4605</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Vijay</title>
		<link>http://www.gljakal.com/blog/2007/09/12/getting-rid-of-the-naming-container-in-aspnet-20/comment-page-1/#comment-21731</link>
		<dc:creator>Vijay</dc:creator>
		<pubDate>Mon, 01 Dec 2008 12:51:10 +0000</pubDate>
		<guid isPermaLink="false">http://gljakal.com/blog/2007/09/12/getting-rid-of-the-naming-container-in-aspnet-20/#comment-21731</guid>
		<description>How can i set This for all control in one statement or code</description>
		<content:encoded><![CDATA[<p>How can i set This for all control in one statement or code</p>
]]></content:encoded>
	</item>
</channel>
</rss>
