I have a jQueryUI dialog with some textboxes, plus a button. Right now, the asp:Button
tag used to generate the button automatically sets its type as type="submit"
. The structure of the dialog is such that pressing enter at any of the textboxes should not call the button click event. It seems like the cleanest way to solve the problem, if it is doable, is to manually set the button's type to something other than submit
. Is there a way to do this?
Edit: Forgot to mention this, but the button text is bound to a database item by <%# Eval() %>
, which doesn't work without a server-side tag.