Click here to Skip to main content
15,903,201 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
how to set dropdownlistbox read only in asp.net2.0???
Posted
Updated 30-Jan-13 14:22pm
v2
Comments
[no name] 30-Jan-13 21:45pm    
Kindly elaborate a little regarding readonly dropdown usage in your scenario ?

1 solution

use Enabled="false" for your DropDownList

XML
<asp:DropDownList ID="ddlTemp" runat="server" Enabled="false">
      <asp:ListItem Text="-----ALL-----" Value="-1"></asp:ListItem>
</asp:DropDownList>
 
Share this answer
 

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