---
title: "Setting RadioButtonList selected value"  
description: "Setting RadioButtonList selected value"  
author: "Anonymous User"  
published: 2015-01-15  
updated: 2015-01-15  
canonical: https://www.mindstick.com/forum/12861/setting-radiobuttonlist-selected-value  
category: "asp.net"  
tags: ["c#", ".net"]  
reading_time: 1 minute  

---

# Setting RadioButtonList selected value

I [am trying](https://answers.mindstick.com/qa/36834/which-two-programming-languages-should-i-master-in-if-i-am-trying-to-get-into-google-or-facebook) to [select](https://www.mindstick.com/forum/160534/orderby-then-select-vs-select-then-orderby-performance) the [radiobuttonlist](https://www.mindstick.com/forum/2150/modify-page_load-method-for-radiobuttonlist)'s using the following [code](https://yourviews.mindstick.com/view/85458/alan-turing-the-mastermind-behind-cracking-the-enigma-code-during-world-war-ii) but it [never](https://yourviews.mindstick.com/view/290/zoos-prisons-for-beings-who-have-never-committed-a-crime) get selected.

```
<asp:RadioButtonList ID="rdBond" CssClass="RadioButtonList"                           
runat="server" RepeatDirection="Horizontal">                           
<asp:ListItem>Yes</asp:ListItem>                           
<asp:ListItem>No</asp:ListItem>                       
</asp:RadioButtonList>
```

and I tried both of the follwing [methods](https://www.mindstick.com/articles/13060/runny-nose-remedy-methods-that-work-best) but doesn't work.

```
       ListItem l2 = rdOffset.Items.FindByValue(cd.BondReq.ToString());        if (l2 != null)            l2.Selected = true;         rdOffset.SelectedValue = cd.Offset.ToString();
```

Please help to [fix](https://yourviews.mindstick.com/view/80763/donald-trump-ki-jeet-fix-hai) it.

## Replies

### Reply by Samuel Fernandes

Make this change :

```
  <asp:RadioButtonList ID="rdBond" CssClass="RadioButtonList"                           
runat="server" RepeatDirection="Horizontal">                           
<asp:ListItem Selected =True >Yes</asp:ListItem> <%--change
this in your code--%>                           
<asp:ListItem>No</asp:ListItem>                       
</asp:RadioButtonList>
```


---

Original Source: https://www.mindstick.com/forum/12861/setting-radiobuttonlist-selected-value

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
