0

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..

5
Contributors
8
Replies
11
Views
7 Years
Discussion Span
Last Post by crishjeny
0

Set DropDownList1.Enabled=false.

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

Edited by vvashishta: n/a

0

>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.

-1

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..

0

>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

0

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>

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.