Click here to Skip to main content
15,938,218 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi, when i select the dropdown value after that the dropdown should become disable. I should not select second time. I am using javascript and dropdown is the html one. when i disable the dropdown(using javascript) it becomes diable but saving in vb.net no value is coming in the dropdown.please help me.
Posted
Updated 24-Jun-13 21:46pm
v2

1 solution

Make dropdownlist disable using Javascript.For reference,refer to below link

Disable DropDownList using Javascript[^]

Now,i assume you have some button,onclick event of that button take value of dropdown,store it somewhere,make it disable,that is you have to call javascript function from your code file.For this,refer to below link

How to call javascript function from code-behind[^]

Regards.. :laugh:
 
Share this answer
 
v2
Comments
cathkamali 25-Jun-13 4:45am    
ishi there any lock control in dropdown list. without touching the code
Thanks7872 25-Jun-13 4:46am    
There is nothing like lock on any control,but you can go ahead as i suggested. Its very simple and clean approach.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900