Disable combo
-
Hi everybody, I need to disable a ComboBox after clicking a button. I set the Enabled property to false at Click Event of button, but it didn't work (because it needs a postBack) I want to do this after clicking the button and doing sth (if succeed), so I can't do it in Page_Load. What should I do?
Best wishes
-
Hi everybody, I need to disable a ComboBox after clicking a button. I set the Enabled property to false at Click Event of button, but it didn't work (because it needs a postBack) I want to do this after clicking the button and doing sth (if succeed), so I can't do it in Page_Load. What should I do?
Best wishes
mehrdadc48 wrote:
What should I do?
Do it at the client side using Java script.
Manas Bhardwaj Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
-
mehrdadc48 wrote:
What should I do?
Do it at the client side using Java script.
Manas Bhardwaj Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
How can I deal with standard DropDownList in javascript (in client event of another control. not itself)?
Best wishes
-
Hi everybody, I need to disable a ComboBox after clicking a button. I set the Enabled property to false at Click Event of button, but it didn't work (because it needs a postBack) I want to do this after clicking the button and doing sth (if succeed), so I can't do it in Page_Load. What should I do?
Best wishes
use javascript /// write this script function in Body or form tag function setcomboDisable() { document.getElementById('comboid').disabled="disabled" return false; } ///in page_load event buttonid1.Attributes.Add("onclick","if(setcomboDisable()==false){ return false;}else { return true;}"); okay i hope it will work :)