<?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: Enabling &amp; Disabling ASP.NET radio buttons using code-behind and JavaScript</title>
	<atom:link href="http://www.codefrenzy.net/2008/06/19/enabling-disabling-aspnet-radio-buttons-using-code-behind-and-javascript/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.codefrenzy.net/2008/06/19/enabling-disabling-aspnet-radio-buttons-using-code-behind-and-javascript/</link>
	<description>A different dream everyday</description>
	<lastBuildDate>Wed, 08 Sep 2010 17:12:27 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Gebbetje</title>
		<link>http://www.codefrenzy.net/2008/06/19/enabling-disabling-aspnet-radio-buttons-using-code-behind-and-javascript/comment-page-1/#comment-225</link>
		<dc:creator>Gebbetje</dc:creator>
		<pubDate>Fri, 25 Jun 2010 08:20:53 +0000</pubDate>
		<guid isPermaLink="false">http://www.codefrenzy.net/2008/06/19/enabling-disabling-aspnet-radio-buttons-using-code-behind-and-javascript/#comment-225</guid>
		<description>Very usefull tip. One correction though:

secondRadioButtonList.InputAttributes.Add(”disabled”, “disabled”);

should read (in VB at least, but probably in C# as well):

secondRadioButtonList.Attributes.Add(”disabled”, “disabled”);</description>
		<content:encoded><![CDATA[<p>Very usefull tip. One correction though:</p>
<p>secondRadioButtonList.InputAttributes.Add(”disabled”, “disabled”);</p>
<p>should read (in VB at least, but probably in C# as well):</p>
<p>secondRadioButtonList.Attributes.Add(”disabled”, “disabled”);</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Volkan</title>
		<link>http://www.codefrenzy.net/2008/06/19/enabling-disabling-aspnet-radio-buttons-using-code-behind-and-javascript/comment-page-1/#comment-186</link>
		<dc:creator>Volkan</dc:creator>
		<pubDate>Fri, 28 Aug 2009 20:04:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.codefrenzy.net/2008/06/19/enabling-disabling-aspnet-radio-buttons-using-code-behind-and-javascript/#comment-186</guid>
		<description>Hi,

I had the same problem with span tags.. Your tip saved me from wasting many more hours trying to figure out the solution.
Thank you very much.</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>I had the same problem with span tags.. Your tip saved me from wasting many more hours trying to figure out the solution.<br />
Thank you very much.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: GB</title>
		<link>http://www.codefrenzy.net/2008/06/19/enabling-disabling-aspnet-radio-buttons-using-code-behind-and-javascript/comment-page-1/#comment-174</link>
		<dc:creator>GB</dc:creator>
		<pubDate>Wed, 01 Apr 2009 20:27:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.codefrenzy.net/2008/06/19/enabling-disabling-aspnet-radio-buttons-using-code-behind-and-javascript/#comment-174</guid>
		<description>Hi,
I&#039;m having the same type of issue, only with an HtmlInputText control.  I&#039;m using  .Net 2.0 with code behind in VB.   In my code behind I&#039;ve tried both:

         txtInput.Attributes.Add(&quot;disabled&quot;, &quot;disabled&quot;)
and
         txtInput.Disabled = True

For both, when I look at txtInput.disabled on the client side during the onload event it is set to false.  Not sure what I&#039;m doing wrong.

aspx code:
        

js:
       var txtInput = document.getElementById(&quot;txtInput&quot;);
       if (txtInput.disabled != false) {
          
       }

Well,  does stuff even when the txtInput control is disabled on the server.

Thanks in advance for any help!</description>
		<content:encoded><![CDATA[<p>Hi,<br />
I&#8217;m having the same type of issue, only with an HtmlInputText control.  I&#8217;m using  .Net 2.0 with code behind in VB.   In my code behind I&#8217;ve tried both:</p>
<p>         txtInput.Attributes.Add(&#8220;disabled&#8221;, &#8220;disabled&#8221;)<br />
and<br />
         txtInput.Disabled = True</p>
<p>For both, when I look at txtInput.disabled on the client side during the onload event it is set to false.  Not sure what I&#8217;m doing wrong.</p>
<p>aspx code:</p>
<p>
js:<br />
       var txtInput = document.getElementById(&#8220;txtInput&#8221;);<br />
       if (txtInput.disabled != false) {</p>
<p>       }</p>
<p>Well,  does stuff even when the txtInput control is disabled on the server.</p>
<p>Thanks in advance for any help!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lp</title>
		<link>http://www.codefrenzy.net/2008/06/19/enabling-disabling-aspnet-radio-buttons-using-code-behind-and-javascript/comment-page-1/#comment-60</link>
		<dc:creator>Lp</dc:creator>
		<pubDate>Fri, 20 Feb 2009 20:27:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.codefrenzy.net/2008/06/19/enabling-disabling-aspnet-radio-buttons-using-code-behind-and-javascript/#comment-60</guid>
		<description>Hi,

This is about allowing it to be enabled on the client/side. I am having problems figuring that the control was enabled in the client on a postback. The enabled property still shows me &quot;false&quot; for the control.

Please help.</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>This is about allowing it to be enabled on the client/side. I am having problems figuring that the control was enabled in the client on a postback. The enabled property still shows me &#8220;false&#8221; for the control.</p>
<p>Please help.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: admin</title>
		<link>http://www.codefrenzy.net/2008/06/19/enabling-disabling-aspnet-radio-buttons-using-code-behind-and-javascript/comment-page-1/#comment-44</link>
		<dc:creator>admin</dc:creator>
		<pubDate>Sat, 19 Jul 2008 01:11:53 +0000</pubDate>
		<guid isPermaLink="false">http://www.codefrenzy.net/2008/06/19/enabling-disabling-aspnet-radio-buttons-using-code-behind-and-javascript/#comment-44</guid>
		<description>Hi Camy,

What version of .NET are you using?  In my example I was using .NET 1.1.  I have just discovered that later versions of .NET (2 and above) do not render RadioButtonLists as spans but as tables instead.  This means that for .NET 2 and above, my solution won&#039;t work.

Let me know what version of .NET you are using and I&#039;ll see if I can fix it.

Cheers. :)

PS I cannot see your example of how your HTML is being rendered.  Do you have somewhere on another site that you can link to for an example of yours?</description>
		<content:encoded><![CDATA[<p>Hi Camy,</p>
<p>What version of .NET are you using?  In my example I was using .NET 1.1.  I have just discovered that later versions of .NET (2 and above) do not render RadioButtonLists as spans but as tables instead.  This means that for .NET 2 and above, my solution won&#8217;t work.</p>
<p>Let me know what version of .NET you are using and I&#8217;ll see if I can fix it.</p>
<p>Cheers. :)</p>
<p>PS I cannot see your example of how your HTML is being rendered.  Do you have somewhere on another site that you can link to for an example of yours?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Camy</title>
		<link>http://www.codefrenzy.net/2008/06/19/enabling-disabling-aspnet-radio-buttons-using-code-behind-and-javascript/comment-page-1/#comment-43</link>
		<dc:creator>Camy</dc:creator>
		<pubDate>Fri, 18 Jul 2008 19:12:43 +0000</pubDate>
		<guid isPermaLink="false">http://www.codefrenzy.net/2008/06/19/enabling-disabling-aspnet-radio-buttons-using-code-behind-and-javascript/#comment-43</guid>
		<description>I also have 2 sets of radiobuttonlist controls, but can&#039;t get the 2nd set to be enabled on the client-side in IE (FF works fine) when it is disabled on the server-side.

I&#039;ve replaced rblList.Enabled = False with rblList.Attributes.Add(&quot;disabled&quot;, &quot;disabled&quot;) in the code-behind, which removed disabled=&quot;disabled&quot; from the span tag.

This is how the HTML is rendered:






							
	
	
	
	

					





	
	
	
	





 

Please help! Thanks in advance.</description>
		<content:encoded><![CDATA[<p>I also have 2 sets of radiobuttonlist controls, but can&#8217;t get the 2nd set to be enabled on the client-side in IE (FF works fine) when it is disabled on the server-side.</p>
<p>I&#8217;ve replaced rblList.Enabled = False with rblList.Attributes.Add(&#8220;disabled&#8221;, &#8220;disabled&#8221;) in the code-behind, which removed disabled=&#8221;disabled&#8221; from the span tag.</p>
<p>This is how the HTML is rendered:</p>
<p>Please help! Thanks in advance.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
