<?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: IDing the Problem of ASP.NET</title>
	<atom:link href="http://www.search-this.com/2008/08/20/iding-the-problem-of-aspnet/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.search-this.com/2008/08/20/iding-the-problem-of-aspnet/</link>
	<description>Internet Marketing, Website Promotion and Blogging Advice</description>
	<lastBuildDate>Sun, 29 Jan 2012 02:18:27 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Tony</title>
		<link>http://www.search-this.com/2008/08/20/iding-the-problem-of-aspnet/comment-page-1/#comment-88129</link>
		<dc:creator>Tony</dc:creator>
		<pubDate>Wed, 27 Aug 2008 15:45:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.search-this.com/?p=714#comment-88129</guid>
		<description>Lets try again, within angle brackets:

%= contentTop.ClientID %</description>
		<content:encoded><![CDATA[<p>Lets try again, within angle brackets:</p>
<p>%= contentTop.ClientID %</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tony</title>
		<link>http://www.search-this.com/2008/08/20/iding-the-problem-of-aspnet/comment-page-1/#comment-88128</link>
		<dc:creator>Tony</dc:creator>
		<pubDate>Wed, 27 Aug 2008 15:44:49 +0000</pubDate>
		<guid isPermaLink="false">http://www.search-this.com/?p=714#comment-88128</guid>
		<description>All that white space should have shown:

</description>
		<content:encoded><![CDATA[<p>All that white space should have shown:</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tony</title>
		<link>http://www.search-this.com/2008/08/20/iding-the-problem-of-aspnet/comment-page-1/#comment-88127</link>
		<dc:creator>Tony</dc:creator>
		<pubDate>Wed, 27 Aug 2008 15:43:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.search-this.com/?p=714#comment-88127</guid>
		<description>You can also use: 

Like so:

var cTop = $get(&quot;
&quot;);

or

var cTop = $(&quot;#&quot;);

The ASP.NET engine will parse the IDs for you at runtime. The bad news is that you cannot use this method in HTML markup such as:

&lt;input type=&quot;button&quot; onclick=&quot;Show(&#039;
&#039;)&quot; /&gt;

This will parse and render the encoded version of the angle brackets. (&amp;lgt;)</description>
		<content:encoded><![CDATA[<p>You can also use: </p>
<p>Like so:</p>
<p>var cTop = $get(&#8221;<br />
&#8220;);</p>
<p>or</p>
<p>var cTop = $(&#8220;#&#8221;);</p>
<p>The ASP.NET engine will parse the IDs for you at runtime. The bad news is that you cannot use this method in HTML markup such as:</p>
<p>&lt;input type=&#8221;button&#8221; onclick=&#8221;Show(&#8216;<br />
&#8216;)&#8221; /&gt;</p>
<p>This will parse and render the encoded version of the angle brackets. (&lgt;)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Golgotha</title>
		<link>http://www.search-this.com/2008/08/20/iding-the-problem-of-aspnet/comment-page-1/#comment-86281</link>
		<dc:creator>Golgotha</dc:creator>
		<pubDate>Thu, 21 Aug 2008 13:47:16 +0000</pubDate>
		<guid isPermaLink="false">http://www.search-this.com/?p=714#comment-86281</guid>
		<description>@Adrain and Brian - right, of course asp.net does this with the intention of avoiding duplicates. BUT, we should be able to ID the controls ourselves and then have controls like the GridView, ListView and Repeater do their auto-IDing off of our initial ID. 

It&#039;s very rare that you would try and target a specific row within these server-controls with CSS or JavaScript, but it&#039;s very likely that you would want to target the controls in general. Even more likely is targeting asp:Panels, asp:PlaceHolder, asp:Button, asp:DropDownList and all the rest.

@Jack - Actually no, I know nothing about MVC. But when I read things like &quot;It enables you to achieve and maintain a clear separation of concerns&quot; and &quot;It provides more control over the URLs you publish in the application and over the HTML that is emitted by the application&quot; I can&#039;t help but think I need to start learning it. If it&#039;s &lt;em&gt;all that&lt;/em&gt; then why doesn&#039;t that just get rolled into ASP.NET 4.0?</description>
		<content:encoded><![CDATA[<p>@Adrain and Brian &#8211; right, of course asp.net does this with the intention of avoiding duplicates. BUT, we should be able to ID the controls ourselves and then have controls like the GridView, ListView and Repeater do their auto-IDing off of our initial ID. </p>
<p>It&#8217;s very rare that you would try and target a specific row within these server-controls with CSS or JavaScript, but it&#8217;s very likely that you would want to target the controls in general. Even more likely is targeting asp:Panels, asp:PlaceHolder, asp:Button, asp:DropDownList and all the rest.</p>
<p>@Jack &#8211; Actually no, I know nothing about MVC. But when I read things like &#8220;It enables you to achieve and maintain a clear separation of concerns&#8221; and &#8220;It provides more control over the URLs you publish in the application and over the HTML that is emitted by the application&#8221; I can&#8217;t help but think I need to start learning it. If it&#8217;s <em>all that</em> then why doesn&#8217;t that just get rolled into ASP.NET 4.0?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brian Nash</title>
		<link>http://www.search-this.com/2008/08/20/iding-the-problem-of-aspnet/comment-page-1/#comment-86020</link>
		<dc:creator>Brian Nash</dc:creator>
		<pubDate>Wed, 20 Aug 2008 20:48:21 +0000</pubDate>
		<guid isPermaLink="false">http://www.search-this.com/?p=714#comment-86020</guid>
		<description>Part of the reason asp.net does this is because the controls (like a button or label) can repeat inside a datagrid or repeater.  This way they get a unique id.  I imagine your way would work fine for a single control on a page.

If you register the whole javascript function in C# code you can fill in individual client id&#039;s.   But that&#039;s pretty painful unless you just have a couple of little javascript functions.

I always got the feeling that javascript support with asp.net was sort of &quot;fine, if we have too&quot;.</description>
		<content:encoded><![CDATA[<p>Part of the reason asp.net does this is because the controls (like a button or label) can repeat inside a datagrid or repeater.  This way they get a unique id.  I imagine your way would work fine for a single control on a page.</p>
<p>If you register the whole javascript function in C# code you can fill in individual client id&#8217;s.   But that&#8217;s pretty painful unless you just have a couple of little javascript functions.</p>
<p>I always got the feeling that javascript support with asp.net was sort of &#8220;fine, if we have too&#8221;.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Adrian Banks</title>
		<link>http://www.search-this.com/2008/08/20/iding-the-problem-of-aspnet/comment-page-1/#comment-85990</link>
		<dc:creator>Adrian Banks</dc:creator>
		<pubDate>Wed, 20 Aug 2008 19:15:57 +0000</pubDate>
		<guid isPermaLink="false">http://www.search-this.com/?p=714#comment-85990</guid>
		<description>The ids are auto-generated to avoid duplicates. If you have a control inside a repeater control, you&#039;d end up with several controls with the same id.</description>
		<content:encoded><![CDATA[<p>The ids are auto-generated to avoid duplicates. If you have a control inside a repeater control, you&#8217;d end up with several controls with the same id.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jack Hughes</title>
		<link>http://www.search-this.com/2008/08/20/iding-the-problem-of-aspnet/comment-page-1/#comment-85938</link>
		<dc:creator>Jack Hughes</dc:creator>
		<pubDate>Wed, 20 Aug 2008 16:08:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.search-this.com/?p=714#comment-85938</guid>
		<description>Good hint...had a look at the MVC framework yet for ASP.NET?</description>
		<content:encoded><![CDATA[<p>Good hint&#8230;had a look at the MVC framework yet for ASP.NET?</p>
]]></content:encoded>
	</item>
</channel>
</rss>

