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

  • My turn to do the meme

    I've lived through 92/158 of these things (58%) [1] I have read a lot of books. [] I have been on some sort of varsity team. [] I have run more…

  • HTML meme

    49 I'm kicking myself for about half of the ones I missed. I'm so used to doing stuff with CSS nowadays, I've forgotten about some of the semantic…

  • Warrior meme

    My sphere is Guardian (Person of great Love and Altruism), and my class is Champion (Self-Righteous and Confident). I am a Hero. You…

  • 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