我的情景,
当我选择列表中的选项时,我需要执行一些操作,例如Textbox应该被禁用。但我发现我的断点指向要执行的动作。请帮忙
答案 0 :(得分:0)
我猜你的意思是SelectedIndexChanged事件不会触发,因为你试图将AutoPostBack设置为true。
<asp:RadioButtonList ID="RadioButtonList1" runat="server" AutoPostBack="True"
onselectedindexchanged="RadioButtonList1_SelectedIndexChanged">
</asp:RadioButtonList>
代码
protected void RadioButtonList1_SelectedIndexChanged(object sender, EventArgs e)
{
TextBox4.Enabled = false;
}