Excuse the ‘noob’ question, but can someone please explain the way ASP.NET’s buttons work. I’m trying to style my buttons in ASP.NET which is driven by server side event handlers in C#. i.e. click on button, and write the values back to SQL Server. Obviously this doesn’t work for a href?
<a href="#" class="myStyle">Submit</a>
<asp:Button ID="btnSubmit" runat="server" Text="Submit" CssClass="myStyle" />
Can a ASP.NET site look as good as a raw-coded HTML page, with loads of jQuery/js addons?
I was actually looking for a nice way of displaying "Windows Buttons". I found a nice solution… Here is the code:
.aspx code:
<asp:Button ID="btnInsert" runat="server" CssClass="btn_normal" Text="Add" OnClick="btnInsert_Click" />.css code:
Result: