On my ASP.NET search page I have this html button control, which I use for the sole purpose of getting an underlined first letter:
<button id="btnSearch" runat="server" type="submit" onServerClick="btnSearch_ServerClick" AccessKey="S">
Anyone knows a way to tackle this? I want to mimic the behaviour of a submit button (with Enter key fires event and the button has slightly darkened edges), but I don't want the submit event to actually fire. Oh, and I would very much prefer better solutions than setting an onkeypress if keycode 13 on every text box on the page.