html onsubmit

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Jhon F
    New Member
    • Dec 2011
    • 1

    html onsubmit

    Hellow
    I put use submit button and onsubmit event in asp:content and its doesn't work, there is another way to call javaScript function to check validation without go to server if there is validation is wrong
    Last edited by jhardman; Dec 11 '11, 07:35 PM. Reason: Accidentally posted in the classic asp forum. Moved to asp.net
  • kadghar
    Recognized Expert Top Contributor
    • Apr 2007
    • 1302

    #2
    Not that i'm aware of, since ASP objects are transformed into HTML objects to be sent to the client. So their actual onclic events are sent to the server while they have "postback".

    Perhaps you want to put the ASP button in a hidden DIV (display:none) and let visible a "validate" button that will validate on client's side and show (display:block) the ASP button's DIV if data is alright.

    Comment

    Working...