Home All Groups Group Topic Archive Search About

asp:ImageButton and javascript



Author
18 Mar 2005 10:34 PM
JIM
Hello,

Does anyone knows how to set the visible property of an asp:Imagebutton to
true
with javascript

I've the following declared :

<asp:ImageButton Id="tstImage" runat="server" visible="False" />

I tried already document.GetElementById('tstImage').visible='true';

but without success

Any idea ?

Many thanks,

Karel

Author
19 Mar 2005 12:08 AM
Bruce Barker
if you set a server control to visible="False", its not rendered in the
html, so there is no way to make it visible in client code (short of using
dhtml and creating the object and adding it to the dom).

-- bruce (sqlwork.com)

Show quote
"JIM" <k.gerae***@pandora.be> wrote in message
news:QHI_d.44260$Uh3.25314@biebel.telenet-ops.be...
> Hello,
>
> Does anyone knows how to set the visible property of an asp:Imagebutton to
> true
> with javascript
>
> I've the following declared :
>
> <asp:ImageButton Id="tstImage" runat="server" visible="False" />
>
> I tried already document.GetElementById('tstImage').visible='true';
>
> but without success
>
> Any idea ?
>
> Many thanks,
>
> Karel
>

AddThis Social Bookmark Button