Hi all,
I have an input button
<input type="button" id="Button2" name="Button2" value="More"
onclick="openPage()">
this input button onclick opens another page.
this "More" button is for additional information only (say I have extra
notes), and if there is none available then it should not appear.
How can i make this button visible or invisible?
Thanks,
Stephen
Aidy - 31 Aug 2005 21:12 GMT
Put an asp:Panel around it
<asp:Panel ID="MyPanel" runat="server">
<input type ....>
</asp:Panel>
Then in your code you make the panel visible ot not
if (condition)
MyPanel.Visible = true;
else
MyPanel.Visible = false;
> Hi all,
>
[quoted text clipped - 9 lines]
> Thanks,
> Stephen
Dmitry Demchuk - 31 Aug 2005 21:30 GMT
You can set it's style to "display: none", for instance.
I usually put group of controls into div tag and manage it's visibility.
> Hi all,
>
[quoted text clipped - 9 lines]
> Thanks,
> Stephen