when I am disable dropdownlist using js, and then I access from .cs page. It gives o value even there is one item is selected..
I want to disable dropdownlist but at the same I want to access its selected value as well
when I am disable dropdownlist using js, and then I access from .cs page. It gives o value even there is one item is selected..
I want to disable dropdownlist but at the same I want to access its selected value as well
You cant access the disabled items from Code behind.
Disabled form values will not be sent in post data.
Check this post
Disabled form fields not submitting data
If you need add some css techniques like opacity and do.
Try to add selected value of dropdown in hidden field, and access value from hidden field.