avatar

My life as journaled

Because I'm boring like that


Previous Entry Share Next Entry
grammar

ASP and form submission.

When visiting an ASP webpage, hitting "Enter" will theoretically submit a form, but without triggering any click or submit events. It basically just refreshes the page - totally useless, in my opinion.

So how do you get "Enter" to trigger a specific button-click? Set the defaultbutton property on your FORM or ASP:PANEL tag to the name of the button that should be invoked when "Enter" is pressed.

?

Log in

No account? Create an account