asp:ImageButton and javascript

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
 
B

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)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,768
Messages
2,569,574
Members
45,048
Latest member
verona

Latest Threads

Top