Java script validation problem

Results 1 to 2 of 2

Thread: Java script validation problem

  1. #1
    Join Date
    Dec 1969

    Default Java script validation problem

    In classic ASP it was very simple to use javascript validations. We simply call a single function on the click of the submit button.<BR>I don&#039;t want to use validator control provided in .net as it takes lot of space on the screen.<BR><BR>Can I somehow do javascript client side validations in ASP .net like the classic ASP. <BR>

  2. #2
    Join Date
    Dec 1969

    Default RE: Java script validation problem

    yes, you can.<BR><BR>calling off the submit button is a little duff though - I prefer to call fro the onsubmit event of the form<BR><BR>onsubmit="return validate(this)"<BR><BR>(see &#039;javascript&#039; at for details)<BR><BR>to do this in ASP.NET, you just make sure you add the &#039;onsubmit&#039; (or onclick) attribute to the appropriate tag, and include the javascript source in the head of the page.<BR><BR>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts