Hi Rea,
You can reference a controls like document.all("'ctrlName'").Usually ,the
ctrlName is the same as the id of that asp control, but in some situation,
it may be changed to control's unique ID.
And at client side, enable property of control does not exists, you should
access disabled property,like document.all.ctrlName.disalbed = false.
--
Juno
MCSD.NET, MCDBA, MCSE
----------------------------------------------------------
Support Team of EasyDotNet, INC.
http://www.EasyDotNet.com
DataForm.NET - The most powerful data entry web server control for ASP.NET
"Rea Peleg" <re******@barak-online.net> дÈëÏûÏ¢ÐÂÎÅ
:Od**************@TK2MSFTNGP12.phx.gbl...
Hi all
I need to reference web form (server side) controls, inside client side
javascript,
in order to enable some of them according to some condition.
I tried referencing through document.form.ctrlName.enabled = true
but got massage ctrlName is null or not an object??
Same with document.all('ctrlName').
If you have an example of code that works i'll be greatfull.
Thanks for your attention
Rea