Click here to Skip to main content
15,906,567 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
<button class="btn btn-danger btn-large"> Cancel</button>
Posted

to make html control to server control u only need to add runat="server" attribute and ur html control becomes server control
exa.
<input id="Button1" type="button" runat="server" value="button" />
 
Share this answer
 
ASP.NET
<button class="btn btn-danger btn-large" runat="server" id="button1"> Cancel</button>


However not sure what you want with this button at server side. You can set only some properties by accessing this button at server side as to fire an event, you still need to attach event to this button.

~ Prashant
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900