Link to home
Start Free TrialLog in
Avatar of Mr_Shaw
Mr_Shaw

asked on

hide html reset button

I have an HTML reset button which I would like to hide using c#.

I have trided doing reset.visible= false;

but this does not work.

can anybody help.
Avatar of abel
abel
Flag of Netherlands image

How do you declare the reset button? If the ID of the reset button is "reset" and if the runat="server" is present, you can so with the code snippet you say... Otherwise, please show the declaration of the reset button and we go from there
If this is in your aspx:

<input type="reset" runat="server" id="myresetbutton" value="reset me" />
then this can go in your code behind to hide the reset button:

myresetbutton.Visible = false;
Avatar of Mr_Shaw
Mr_Shaw

ASKER

<input id="Button2" type="reset" value="Reset" />

I have tride Button2.visible = false

and it does not work.
ASKER CERTIFIED SOLUTION
Avatar of abel
abel
Flag of Netherlands image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Mr_Shaw

ASKER

thanks