I have three dropdowns, which are all loaded in the same function. How do I grey out dropdown 2 & 3? I want them to activate if a certain choice is made on dropdown 1.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If you’re using the AJAX ControlKit you can use cascading dropdowns:
http://www.asp.net/ajaxLibrary/AjaxControlToolkitSampleSite/CascadingDropDown/CascadingDropDown.aspx
If not you can add an event handler for each drop box OnSelectedIndexChanged, then perfom your logic on postback. (set textbox 1 & 2 do .Enable = false onLoad)
Or you can use javascript to do it clientside like this: so disable the postback for the dropdown, use the OnClient javascript hooks and implement enable/disable in javascript.