asp:ImageButton and javascript

  • Thread starter Thread starter JIM
  • Start date Start date
J

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
 
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)
 
Back
Top