I have a dropdown which is disabled on certain values and enabled on certain values. During save I want to check if it is disabled or not.
I am disabling the dropdown in the following way:
ddlSectorRailway.Attributes.Add("disabled","disabled");
How to check if the dropdown is disabled or not? I want to save the dropdown value only if it is enabled. How to do this in C#?
Thanks,
1 Answer