﻿<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>StrataFrame Forum » StrataFrame Application Framework - V1 » Issues  » Web Binding to RadioButtonList</title><generator>InstantForum 2017-1 Final</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>StrataFrame Forum</webMaster><lastBuildDate>Tue, 09 Jun 2026 07:25:52 GMT</lastBuildDate><ttl>20</ttl><item><title>Web Binding to RadioButtonList</title><link>http://forum.strataframe.net/FindPost32517.aspx</link><description>Hello,&amp;nbsp;&lt;br/&gt;&lt;br/&gt;&lt;div&gt;I am binding a BO property to a RadioButtonList control.&amp;nbsp;&lt;div&gt;The business object is empty during the whole test.&amp;nbsp;&lt;div&gt;The simple scenario is this:&amp;nbsp;&lt;div&gt;&lt;ul&gt;&lt;li&gt;one page&lt;/li&gt;&lt;li&gt;one BO in the ApplicationBasePage&lt;/li&gt;&lt;li&gt;on the page, a SF RadioButtonList&lt;/li&gt;&lt;li&gt;and an &amp;lt;asp:Button&amp;gt;&lt;/li&gt;&lt;/ul&gt;&lt;br/&gt;&lt;br/&gt;&lt;div&gt;The page will load fine once. And, everything looks as it should, the bound control is disabled.&amp;nbsp;&lt;div&gt;When I click the Button to initiate a PostBack, the result is the following error below the code.&lt;br/&gt;&lt;br/&gt;&lt;div&gt;Does anyone have any insight into this? Is this normal ASP.NET behavior or is there a workaround that does not involve manual binding to the control (BindingDirection="None")?&lt;br/&gt;&lt;br/&gt;&lt;div&gt;Thank You,&amp;nbsp;&lt;div&gt;Govinda&lt;br/&gt;&lt;br/&gt;&lt;div&gt;&lt;span&gt;[code]&lt;/span&gt;&amp;lt;SFWeb:RadioButtonList RepeatDirection="Horizontal"&amp;nbsp;&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ID="rblSolutionType" runat="server" BusinessObjectName="QuoteProduct"&amp;nbsp;&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; BindingField="solution_type_lpk"&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; PopulationType="Manual"&amp;gt;&lt;div&gt;&amp;lt;/SFWeb:RadioButtonList&amp;gt;&lt;div&gt;[/code]&lt;div&gt;&lt;span&gt;[hr]&lt;/span&gt;&lt;br/&gt;&lt;div&gt;&lt;span&gt;[code]&lt;/span&gt;&lt;div&gt;'rblSolutionType' has a SelectedValue which is invalid because it does not exist in the list of items.&lt;div&gt;Parameter name: value&lt;br/&gt;&lt;br/&gt;&lt;div&gt;Description: An unhandled exception occurred during the execution of the current web request.&amp;nbsp;&lt;div&gt;Please review the stack trace for more information about the error and where it originated in the code.&amp;nbsp;&lt;br/&gt;&lt;br/&gt;&lt;div&gt;Exception Details: System.ArgumentOutOfRangeException: 'rblSolutionType' has a&amp;nbsp;&lt;div&gt;SelectedValue which is invalid because it does not exist in the list of items.&lt;div&gt;Parameter name: value&lt;br/&gt;&lt;br/&gt;&lt;div&gt;Source Error:&amp;nbsp;&lt;br/&gt;&lt;br/&gt;&lt;div&gt;An unhandled exception was generated during the execution of the current web request.&amp;nbsp;&lt;div&gt;Information regarding the origin and location of the exception can be identified using the exception stack trace below.&lt;br/&gt;&lt;br/&gt;&lt;div&gt;Stack Trace:&amp;nbsp;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;div&gt;[ArgumentOutOfRangeException: 'rblSolutionType' has a SelectedValue which is invalid because it does not exist in the list of items.&lt;div&gt;Parameter name: value]&lt;div&gt;&amp;nbsp; &amp;nbsp;System.Web.UI.WebControls.ListControl.set_SelectedValue(String value) +9708448&lt;br/&gt;&lt;br/&gt;&lt;div&gt;[TargetInvocationException: Exception has been thrown by the target of an invocation.]&lt;div&gt;&amp;nbsp; &amp;nbsp;System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor) +0&lt;div&gt;&amp;nbsp; &amp;nbsp;System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments) +92&lt;div&gt;&amp;nbsp; &amp;nbsp;System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) +108&lt;div&gt;&amp;nbsp; &amp;nbsp;System.Reflection.RuntimePropertyInfo.SetValue(Object obj, Object value, BindingFlags invokeAttr, Binder binder, Object[] index, CultureInfo culture) +97&lt;div&gt;&amp;nbsp; &amp;nbsp;System.Reflection.RuntimePropertyInfo.SetValue(Object obj, Object value, Object[] index) +21&lt;div&gt;&amp;nbsp; &amp;nbsp;MicroFour.StrataFrame.Business.BusinessLayer.ClearWebControl(IWebBusinessBindable ControlToBind, IWebBinding Binding) +409&lt;div&gt;&amp;nbsp; &amp;nbsp;MicroFour.StrataFrame.Business.BusinessLayer.BindDataToWebControl(IWebBusinessBindable ControlToBind, IWebBinding Binding) +1294&lt;div&gt;&amp;nbsp; &amp;nbsp;MicroFour.StrataFrame.Business.BusinessLayer.BindDataToWebControlPrimary(IWebBusinessBindable ControlToBind) +80&lt;div&gt;&amp;nbsp; &amp;nbsp;MicroFour.StrataFrame.UI.Web.BasePage.BindControls() +358&lt;br/&gt;&lt;br/&gt;&lt;div&gt;[UIException: An error occurred while binding data to the web control 'rblSolutionType'.]&lt;div&gt;&amp;nbsp; &amp;nbsp;MicroFour.StrataFrame.UI.Web.BasePage.BindControls() +921&lt;div&gt;&amp;nbsp; &amp;nbsp;MicroFour.StrataFrame.UI.Web.BasePage.Page_PreRender(Object sender, EventArgs e) +37&lt;div&gt;&amp;nbsp; &amp;nbsp;System.Web.UI.Control.OnPreRender(EventArgs e) +92&lt;div&gt;&amp;nbsp; &amp;nbsp;System.Web.UI.Control.PreRenderRecursiveInternal() +83&lt;div&gt;&amp;nbsp; &amp;nbsp;System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +974&lt;div&gt;&lt;span&gt;[/code]&lt;/span&gt;</description><pubDate>Tue, 15 Apr 2014 14:08:55 GMT</pubDate><dc:creator>Govinda Berrio</dc:creator></item></channel></rss>