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.
I have trided doing reset.visible= false;
but this does not work.
can anybody help.
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;
ASKER
<input id="Button2" type="reset" value="Reset" />
I have tride Button2.visible = false
and it does not work.
I have tride Button2.visible = false
and it does not work.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
thanks