How do i get selected radiobuttonlist in asp.net?
<p>I am using following code for a radiobuttonlist with default value of yes.</p>

<pre><code> &lt;asp:RadioButtonList ID="RadioButtonList1" runat="server" onselectedindexchanged="radiobtnlist_SelectedIndexChanged"&gt;
    &lt;asp:ListItem Selected="True"&gt;YES&lt;/asp:ListItem&gt;
    &lt;asp:ListItem&gt;NO&lt;/asp:ListItem&gt;
 &lt;/asp:RadioButtonList&gt;
</code></pre>

<p>Every time when the value of the radiobtnlist is changed an event is fired.I am using following c# code for selected index changed</p>

<pre><code>protected void radiobtnlist_SelectedIndexChanged(object sender, EventArgs e)
{
    //do work
}
</code></pre>

<p>Problem is that when radiobtnlist value is set as No and the selection is not changed but the selectedindex change event is fired and when radiobtnlist is set as Yes, the selectedindex change event is not fired.</p>

<p>I have to find the selection of radiobtnlist everytime before postback and if its value is changed then saved data in db but how to find the selected value of radiobtnlist with a default value on a ListItem.</p>
