I want to disconnect one listItem from a RadioButtonList depending on the state, such as if querystring contain true , then it will display both ListItem and disable the second listItem, i.e. (external) Thus, the user cannot access the 2nd list item
I have url like
abc.com/Account.aspx?type=true
abc.com/Account.aspx?type=false
Code On Account.aspx
<asp:RadioButtonList ID="rdodomiantype" runat="server" RepeatDirection="Horizontal" onclick="setTextbox()"> <asp:ListItem Selected="True" Value="0" >Default</asp:ListItem> <asp:ListItem Value="1" >External</asp:ListItem> </asp:RadioButtonList>
source share