i have a radio button list
Example:
<asp:RadioButtonList ID="rdobtn" runat="server" RepeatDirection="Horizontal" >
<asp:ListItem Text="Stand Alone" Value="0"></asp:ListItem>
<asp:ListItem Text="Cloud" Value="1"></asp:ListItem>
</asp:RadioButtonList>
having two list item with item value
Based on conditon to enable or disable list item in asp.net using c#
code behind
string="Cloud";
if(string="Cloud")
{
//how to enable first list item
//to enable this item <asp:ListItem Text="Stand Alone" Value="0"></asp:ListItem>
}
else
{
//enable second list item
//to enable this item <asp:ListItem Text="Cloud" Value="1"></asp:ListItem>
</asp:RadioButtonList>
}