 




<?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: Problems with data binding a radio button list</title>
	<atom:link href="http://itknowledgeexchange.techtarget.com/itanswers/problems-with-data-binding-a-radio-button-list/feed/" rel="self" type="application/rss+xml" />
	<link>http://itknowledgeexchange.techtarget.com/itanswers/problems-with-data-binding-a-radio-button-list/</link>
	<description></description>
	<lastBuildDate>Mon, 20 May 2013 05:26:00 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
	<item>
		<title>By: carlosdl</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/problems-with-data-binding-a-radio-button-list/#comment-74772</link>
		<dc:creator>carlosdl</dc:creator>
		<pubDate>Thu, 11 Mar 2010 21:40:14 +0000</pubDate>
		<guid isPermaLink="false">#comment-74772</guid>
		<description><![CDATA[Great !

As I thought, your procedure was not returning field names, but values.

Thanks for sharing your solution.]]></description>
		<content:encoded><![CDATA[<p>Great !</p>
<p>As I thought, your procedure was not returning field names, but values.</p>
<p>Thanks for sharing your solution.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: neilo</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/problems-with-data-binding-a-radio-button-list/#comment-74770</link>
		<dc:creator>neilo</dc:creator>
		<pubDate>Thu, 11 Mar 2010 21:35:03 +0000</pubDate>
		<guid isPermaLink="false">#comment-74770</guid>
		<description><![CDATA[Carlos thanks for every thing, I found the solution to the problem, that was by passing datareader rsults to an interger variable  and then pas again to the RadioButtonList the value of the variable  as follows:
Dim rst as Integer
then add the the While read() (see above)
...
rst=rdr.GetValue(2)
End while
rbl_CLpdbICF.SelectedValue=rst
---
The above works, even if it isn&#039;t pretty

Neil]]></description>
		<content:encoded><![CDATA[<p>Carlos thanks for every thing, I found the solution to the problem, that was by passing datareader rsults to an interger variable  and then pas again to the RadioButtonList the value of the variable  as follows:<br />
Dim rst as Integer<br />
then add the the While read() (see above)<br />
&#8230;<br />
rst=rdr.GetValue(2)<br />
End while<br />
rbl_CLpdbICF.SelectedValue=rst<br />
&#8212;<br />
The above works, even if it isn&#8217;t pretty</p>
<p>Neil</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: carlosdl</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/problems-with-data-binding-a-radio-button-list/#comment-74746</link>
		<dc:creator>carlosdl</dc:creator>
		<pubDate>Thu, 11 Mar 2010 13:23:10 +0000</pubDate>
		<guid isPermaLink="false">#comment-74746</guid>
		<description><![CDATA[Have you checked that the stored procedure is in fact returning rows ?

Also, the DataValueField property specifies &lt;b&gt;the name of a field (from the data source)&lt;/b&gt; that provides the value of each list item (not the value itself ), so, the stored procedure in this case is supposed to return field names, not the values you want to assign to the radio buttons.]]></description>
		<content:encoded><![CDATA[<p>Have you checked that the stored procedure is in fact returning rows ?</p>
<p>Also, the DataValueField property specifies <b>the name of a field (from the data source)</b> that provides the value of each list item (not the value itself ), so, the stored procedure in this case is supposed to return field names, not the values you want to assign to the radio buttons.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: neilo</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/problems-with-data-binding-a-radio-button-list/#comment-74734</link>
		<dc:creator>neilo</dc:creator>
		<pubDate>Wed, 10 Mar 2010 23:26:15 +0000</pubDate>
		<guid isPermaLink="false">#comment-74734</guid>
		<description><![CDATA[Neither one of the two radioButtonList are being populated. I have change the value of both button to false and two true but I am not getting any results. It is as if the data reader is not passing the values or the syntax of how I assign the values is incorrect?

Hope this help]]></description>
		<content:encoded><![CDATA[<p>Neither one of the two radioButtonList are being populated. I have change the value of both button to false and two true but I am not getting any results. It is as if the data reader is not passing the values or the syntax of how I assign the values is incorrect?</p>
<p>Hope this help</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: carlosdl</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/problems-with-data-binding-a-radio-button-list/#comment-74733</link>
		<dc:creator>carlosdl</dc:creator>
		<pubDate>Wed, 10 Mar 2010 23:11:52 +0000</pubDate>
		<guid isPermaLink="false">#comment-74733</guid>
		<description><![CDATA[I see 2 RadioButtonLists in your code: rbl_CLpdbICF and rbl_CLprop.

Which one is not being populated ?

Also, what happens if you try the suggestion from my previous post ?]]></description>
		<content:encoded><![CDATA[<p>I see 2 RadioButtonLists in your code: rbl_CLpdbICF and rbl_CLprop.</p>
<p>Which one is not being populated ?</p>
<p>Also, what happens if you try the suggestion from my previous post ?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: neilo</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/problems-with-data-binding-a-radio-button-list/#comment-74730</link>
		<dc:creator>neilo</dc:creator>
		<pubDate>Wed, 10 Mar 2010 22:40:42 +0000</pubDate>
		<guid isPermaLink="false">#comment-74730</guid>
		<description><![CDATA[Thanks for getting back so quickly.
The system does not generate a message  but the error is the fact that the radiobutton list is not populated. The value for the radio buttons is 1 (Yes) and 0 (No).

Store procedure passes an array form 0-3 or 4  items, the first two get populated properly but the other 2 do not and that is my problem.

Any help is appreciated.]]></description>
		<content:encoded><![CDATA[<p>Thanks for getting back so quickly.<br />
The system does not generate a message  but the error is the fact that the radiobutton list is not populated. The value for the radio buttons is 1 (Yes) and 0 (No).</p>
<p>Store procedure passes an array form 0-3 or 4  items, the first two get populated properly but the other 2 do not and that is my problem.</p>
<p>Any help is appreciated.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: carlosdl</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/problems-with-data-binding-a-radio-button-list/#comment-74728</link>
		<dc:creator>carlosdl</dc:creator>
		<pubDate>Wed, 10 Mar 2010 22:15:41 +0000</pubDate>
		<guid isPermaLink="false">#comment-74728</guid>
		<description><![CDATA[What is the exact error message ?
What is the line of code that generates the error ?
Have you tried assigning a fixed field name to the DataValueField property of the radio button lists (i.e. without using your DataReader) ?]]></description>
		<content:encoded><![CDATA[<p>What is the exact error message ?<br />
What is the line of code that generates the error ?<br />
Have you tried assigning a fixed field name to the DataValueField property of the radio button lists (i.e. without using your DataReader) ?</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using memcached
Database Caching 3/10 queries in 0.036 seconds using memcached
Object Caching 351/357 objects using memcached

Served from: itknowledgeexchange.techtarget.com @ 2013-05-20 05:54:12 -->