Javascript validation with web controls and form postbacks

J

JP2006

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
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,056
Messages
2,570,443
Members
47,089
Latest member
Bobby2025b

Latest Threads

Top