Groups | Blog | Home
all groups > dotnet framework > august 2005 >

dotnet framework : Information on Input Button


Stephen Noronha
8/31/2005 1:09:50 PM
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

Dmitry Demchuk
8/31/2005 1:30:44 PM
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.

[quoted text, click to view]

Aidy
8/31/2005 9:12:30 PM
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;

[quoted text, click to view]

AddThis Social Bookmark Button