title: Selecting radiobutton from codebehind
body: <p>I have a set of three <code>RadioButtons</code> on my aspx page:</p>
  
  <p>On <code>pageLoad</code> I am setting the default value from code behind using the following code:</p>
  
  <pre><code>rbListAccess.Items.FindByText("Page1ScoreCard POC").Selected = true;
  rbListMetricType.Items.FindByText("Non-Percentage").Selected = true;
  rbListMetricInterval.Items.FindByText("Monthly").Selected = true;
  </code></pre>
  
  <p>This is working fine.</p>
  
  <p>On an edit link,I am fetching data from backend and setting values again using data columns from the dataset fetched but there it is not working. The values are not being selected correctly. I cannot understand the issue. Randomly once or twice one/two of the set are being set correctly:</p>
  
  <pre><code>rbListAccess.Items.FindByText(ds.Tables[0].Rows[0]["ToBeFilledBy"].ToString()).Selected = true;
  rbListMetricType.Items.FindByText(ds.Tables[0].Rows[0]["MetricType"].ToString()).Selected=true;
  
  rbListMetricInterval.Items.FindByText(ds.Tables[0].Rows[0]["MetricInterval"].ToString()).Selected = true;
  </code></pre>
  
  <p>Please let me know the issue.</p>