"Murali" <mu*******@indiatimes.com> wrote in message
news:5C**********************************@microsof t.com...
We r using a single aspx page for insertion ,updation and deletion of
data.In each cases we want to hide a lot of web components in a single
form.Now we r hiding each component using the visibility property of
components.But we want to avoid this one because (eg: if there r 20
components then we have to set the visibility of each component
separately)How to set visible properties of all webcomponents in the form
in a single statement
I believe if you set all of the components of the form to have the same id
that once you set the visibility of that id (using getElementByID in
J(ava)Script) it should hide all of them. Also if the components are in a
grouping that does not contain any of the components you wish to show you
could probably use a span or div and set the visibilty of those.
Neil