|
it
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
asp:ImageButton and javascript
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) 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 > |
|||||||||||||||||||||||