Anitra Smith (anitra) wrote,
Anitra Smith
anitra

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.
Tags: asp, computer, web development
Subscribe

  • Movie: Sitting Pretty

    Last night, I watched Sitting Pretty, the original "Mr. Belvedere", with nightskyre. It started as a curiosity, since I am…

  • Sweeney Todd

    Finally saw the movie version last night. I know Tim Burton's style, and the basic plot of the musical, and yet it still surprised me just how…

  • "Sunshine" Saturday evening

    Not too many people are actually interested in going, and nightskyre changed his vote to "Saturday night" - so, Saturday it is! Probably…

  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 0 comments