c# - How to make a dropdownlist disabled depending on second dropdownlist -
i having 2 dropdownlists , in 1st if select country populated corresponding states want grey out second ddl , display message select state in it. how can achieve this? not using ajax this.
why don't temporary disable on server side?
ddl2.enabled = false; or better this, on first changed, check state, if smth choosen, enable secondary ddl.
ddl1_onselectedindexchanged(object sender....) { if (ddl1.selectedindex != 0) ddl2.enabled = true; }
Comments
Post a Comment