Hi all.. I need to make my dropdownlist disabled (none can change value or it should be read only)..which property should I use as readonly for dropdownlist is not working for me..
PHMO..

Recommended Answers

Set DropDownList1.Enabled=false.

Jump to Post

All 8 Replies

Set DropDownList1.Enabled=false.

Set DropDownList1.Enabled=false.

thanks for your reply..yes it works for me..
regards.

>but it is not working out there..some other way to do so??

I want to know why it is not working. Please post your code.

To disable the dropdownlist, set the disable property yes


Hi all.. I need to make my dropdownlist disabled (none can change value or it should be read only)..which property should I use as readonly for dropdownlist is not working for me..
PHMO..

change the enable propery to false..

>but it is not working out there..some other way to do so??

I want to know why it is not working. Please post your code.

it has worked... thanks

Hi

Refer the following code for how to disable a dropdownlist in asp.net

Hi

To solve the issue of to disable a dropdownlist in asp.net.you can refer following code.

<asp:DropDownList ID="DropDownList1" runat="server" Enabled="False">
</asp:DropDownList>

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.20 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.