Why does asp.net mvc form submits itself on button clicks when javascript function error?
        Posted  
        
            by melaos
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by melaos
        
        
        
        Published on 2010-04-11T13:10:15Z
        Indexed on 
            2010/04/11
            13:13 UTC
        
        
        Read the original article
        Hit count: 420
        
hi guys, i'm new to the asp.net mvc, and while working on this, i used very basic asp.net mvc stuff like beginform, etc.
i used a lot of jquery codes this round for client side validation, ajax data retrieval, and other gui works.
and i used a combinations of html inputs buttons, etc and the asp.net mvc type of controls. what i noticed is that whenever i click on a button control, which sometimes are tied to either jquery oclick events, when there's a javascript error, the page will just go on and submit.
why is this happening and what am i missing here?
my bad for the dumb questions.. thanks
© Stack Overflow or respective owner