1. > For DropDownList
DropDownList1.Attributes.Add("disabled", "disabled");
2. > For TextBox
TextBox1.Attributes.Add("readonly","readonly");
3. > To Enable DropDownList Or TextBox
DropDownList1.Attributes.Remove("readonly");
TextBox1.Attributes.Remove("readonly");
No comments:
Post a Comment