Javascript validation with web controls and form postbacks

Discussion in 'ASP .Net' started by JP2006, Aug 22, 2006.

  1. JP2006

    JP2006 Guest

    I have a webpage that is made up of mulitiple web controls. Several of
    these effect a postback on the page if clicked on. However one them is
    a form and needs validation on the user input - I have some javascript
    that does the validation which is triggered by the onsubmit event of
    the form.
    The issue is that this event, and the javascript, also fires when any
    of the other webcontrols on the page are used (ie. a link button is
    clicked).
    I am sure this is a common beginners problem with .NET web forms and
    web controls - please put me straight on the right way to do this!
    Thanks
     
    JP2006, Aug 22, 2006
    #1
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Colin Basterfield

    Web form validation vs object validation

    Colin Basterfield, Nov 28, 2003, in forum: ASP .Net
    Replies:
    1
    Views:
    585
    Tommy
    Nov 29, 2003
  2. Matt
    Replies:
    14
    Views:
    4,523
    Chad Z. Hower aka Kudzu
    Jan 30, 2004
  3. Nathan Sokalski
    Replies:
    5
    Views:
    1,288
    Gaurav Vaish \(www.Edujini-Labs.com\)
    Jan 10, 2007
  4. Replies:
    0
    Views:
    602
  5. Ellie
    Replies:
    2
    Views:
    610
    Ellie
    Oct 30, 2008
  6. Grigory Temchenko
    Replies:
    0
    Views:
    422
    Grigory Temchenko
    Dec 28, 2008
  7. Nathan Sokalski
    Replies:
    4
    Views:
    528
    Nathan Sokalski
    Dec 21, 2006
  8. bnp
    Replies:
    4
    Views:
    613
Loading...