A readonly panel?

G

guy

Is there a simple way to have a panel with a readonly property so all child controls will not accept
input?
 
S

Scott Mitchell [MVP]

guy said:
Is there a simple way to have a panel with a readonly property
so all child controls will not accept input?

No. You need to set the Enabled property of all Web controls within the
Panel to False. (You can do this programmatically by looping through
the Panel's Controls collection, if you like.)

In fact, I wouldn't recommend setting the Panel's Enabled property to
False at all. Check out this blog entry of mine for more information:

Panel Weirdness
http://scottonwriting.net/sowblog/posts/1125.aspx

Happy Programming!


--

Scott Mitchell
(e-mail address removed)
http://www.4GuysFromRolla.com
http://www.ASPFAQs.com
http://www.ASPMessageboard.com

* When you think ASP, think 4GuysFromRolla.com!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,121
Messages
2,570,712
Members
47,282
Latest member
hopkins1988

Latest Threads

Top