We help IT Professionals succeed at work.
Get Started

asp.net client side validation by calling page method

Last Modified: 2012-05-12
Dear asp.net gurus:

I have a asp.net web page where I need user enter product serial number, and I need to validate the user's entry; if the serial number already exists in SQL server database, then asp.net validator will display error message like 'serial number has been used'. I do not want to do this check on the clientvalidation. I knew that can be done by creating a javascript calling a asp.net static page method and then return the isvalid value to validator. The isvalid value is exchange by using JSON serialization?

I just wonder if anybody can give me some example and source code  to show me how to implement the way I want it to be.

Please do not just copy and paste some links to me, please give me some explananation and then I can know how to integrate with my project.

Thanks in advance.


Watch Question
This problem has been solved!
Unlock 2 Answers and 7 Comments.
See Answers
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE