user3344443 user3344443 - 3 months ago 15
ASP.NET (C#) Question

Disable master control from content page

I tried:


but it is not working, and I don't want to use

How should I deal with it?

Thanks very much for advice!


There is no such property as disabled.

Use enabled property and make it false so that the meaning does not get changed and the program would run as you want.

Do it like this:

Master.FindControl("dropdownlist2").Enabled = false