problem in validation

Last post 07-18-2008, 2:54 AM by neha. 3 replies.
Sort Posts: Previous Next
  •  07-18-2008, 12:04 AM Post number 62726

    • neha is not online. Last active: 07-21-2008, 2:54 AM neha
    • Top 500 Contributor
    • Joined on 07-18-2008
    • Level 1: Deep thought

    problem in validation

    I have a entry form..It has three dropdownlist,lots of textboxes.when user select three dropdown then if the record already exists then it will displayed in the textboxes otherwise blank..I used javascript validation on textboxes and dropdownlists...But it works on dropdownlist and doesnt work on textboxes.it gives alert if textbox is blank but then save the blank textbox in database.

    Means it fires onclick event of submit button after giving alert on the textbox is blank..it doesnt stop to enter the data.....please help me..

  •  07-18-2008, 1:45 AM Post number 62733 in reply to post number 62726

    Re: problem in validation

    You should doing your validation on the onSubmit event of the form, I reckon
  •  07-18-2008, 2:37 AM Post number 62736 in reply to post number 62733

    • neha is not online. Last active: 07-21-2008, 2:54 AM neha
    • Top 500 Contributor
    • Joined on 07-18-2008
    • Level 1: Deep thought

    Re: problem in validation

    Thanx for reply..But I did this on OnClientClick event of the submit button.

  •  07-18-2008, 2:54 AM Post number 62737 in reply to post number 62733

    • neha is not online. Last active: 07-21-2008, 2:54 AM neha
    • Top 500 Contributor
    • Joined on 07-18-2008
    • Level 1: Deep thought

    Re: problem in validation

    Please help me..it dont do validation on onsubmit of the form..please
View as RSS news feed in XML