We're a community of 1076K IT Pros here for help, advice, solutions, professional growth and fun. Join us!
1,075,763 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Start New Discussion Reply to this Discussion

Stylish Validator In asp.net

Hello guys..

i am developing a "College" website for my college project. I want to use validator as are in www.techrepublic.com on the input fields. please help me by providing guidelines.

2
Contributors
1
Reply
37 Minutes
Discussion Span
5 Months Ago
Last Updated
2
Views
hackit
Light Poster
31 posts since Sep 2011
Reputation Points: 7
Solved Threads: 0
Skill Endorsements: 0

To achieve this kind of validation you need to do it with JavaScript. Because if you do it only with asp.net, the page will make a request to the server to validate each field.

I recommend that you use jQuery to achieve this functionality without too much headaches.

There's lots of jQuery Form Validation plugins out there, just google a bit that you'll see.

But it's not hard to code your own.

The logic is kind of simple: When a input value changes, validate it's content and if it's not valid, show the warning message.
Take care of hidding the warning message when the input became valid.
It's also nice to differ a empty required field from a invalid content.

AleMonteiro
Master Poster
752 posts since Aug 2010
Reputation Points: 129
Solved Threads: 140
Skill Endorsements: 23

This article has been dead for over three months: Start a new discussion instead

Post: Markdown Syntax: Formatting Help
 
You
View similar articles that have also been tagged:
 
© 2013 DaniWeb® LLC
Page rendered in 0.0595 seconds using 2.67MB