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. Advertising

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. Karl Seguin

    Re: Postbacks and Input Type=File controls

    Karl Seguin, Jul 24, 2003, in forum: ASP .Net
    Replies:
    1
    Views:
    2,199
    Chuck Haeberle
    Jul 24, 2003
  2. darrel
    Replies:
    4
    Views:
    413
    darrel
    Nov 16, 2006
  3. Replies:
    0
    Views:
    480
  4. Grigory Temchenko
    Replies:
    0
    Views:
    342
    Grigory Temchenko
    Dec 28, 2008
  5. bnp
    Replies:
    4
    Views:
    355
Loading...

Share This Page