문제

Am trying to disable my comboboxlist when I press a specific selection from my radiobutton list, or re-enable the comboboxlist If I make a different selection from radiobuttonlist.
Am using postpacks in my asp as well, but am I cant find how to make this work.
When I double click the radiobutton list and I get the automatic method generation.
I don't know what kind of attributes should I use to make the radiobuttons work when changed.
I tried a few combinations but none seems to work.

Any ideas?

도움이 되었습니까?

해결책

use AutoPostBack="true" property as follow

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

and

<asp:RadioButtonList id="docList" runat="server" AutoPostBack="true" 
      OnSelectedIndexChanged="loginUser" />
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top