我在 vb.net 中有以下内容
<asp:RadioButtonList ID="rbEdit5" runat="server" RepeatDirection="horizontal" >
<asp:ListItem Value="1" >Yes</asp:ListItem>
<asp:ListItem Value="0" >No</asp:ListItem>
</asp:RadioButtonList>
我需要以编程方式选择 2 个列表项之一。 如何在 vb.net 中以编程方式选择上面的"is"
最佳答案
这应该有效:
rbEditTop25.Items.FindByText("Yes").Selected = True
关于asp.net - vb.net 单选按钮选择,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10323261/