How to set the web controls disabled by JavaScript embed in HTML?

I use a panel to contain some buttons,now I want to set all the buttons disabled.How should I do? Can you offer some code sample?
[130 byte] By [BigBoy] at [2008-1-26]
# 1

Setting the Panel to disabled will not set the children to disabled. You need to disable all the children individually by setting the WebControl.Enabled property.

The following topic should have enough sample code for you to figure out how to do it.
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemwebuiwebcontrolswebcontrolclassenabledtopic.asp

RokYu at 2007-9-9 > top of Msdn Tech,.NET Development,JScript for the .NET Framework...
# 2

Thank you! Rok Yu. I got it in javascript like control.disabled = true.

BigBoy at 2007-9-9 > top of Msdn Tech,.NET Development,JScript for the .NET Framework...

.NET Development

Site Classified