通过单击radiobutton asp.net禁用comboboxlist

通过单击radiobutton asp.net禁用comboboxlist,asp.net,radiobuttonlist,autopostback,Asp.net,Radiobuttonlist,Autopostback,当我按下我的单选按钮列表中的特定选择时,我试图禁用我的组合框列表,或者如果我从单选按钮列表中做出不同选择,则重新启用组合框列表。 我在asp中也使用了postpacks,但我找不到如何实现这一点。 当我双击单选按钮列表并自动生成方法时。 我不知道在更改单选按钮时应使用哪种属性才能使其工作我尝试了一些组合,但似乎都不起作用。有什么想法吗?使用AutoPostBack=“true”属性,如下所示 <asp:DropDownList ID="MyDropDown" runat="server"

当我按下我的
单选按钮列表中的特定选择时,我试图禁用我的
组合框列表
,或者如果我从
单选按钮列表
中做出不同选择,则重新启用
组合框列表

我在asp中也使用了
postpacks
,但我找不到如何实现这一点。
当我双击
单选按钮列表
并自动生成方法时。
我不知道在更改
单选按钮时应使用哪种属性才能使其工作
我尝试了一些组合,但似乎都不起作用。

有什么想法吗?

使用
AutoPostBack=“true”
属性,如下所示

<asp:DropDownList ID="MyDropDown" runat="server" AutoPostBack="true" 
    onselectedindexchanged="MyDropDown_SelectedIndexChanged">


我解决了我的问题。我没有回发=真,我的方法很好。在我的代码保护子radioButList中,我有这个选项。\u SelectedIndexChanged(ByVal sender作为对象,ByVal e作为System.EventArgs)处理radioButList.SelectedIndexChanged加上autopostback=true,它可以工作。干杯
<asp:RadioButtonList id="docList" runat="server" AutoPostBack="true" 
      OnSelectedIndexChanged="loginUser" />