Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

.Net form validation

Status
Not open for further replies.

Cineno

Programmer
Jul 24, 2006
142
US
I'm new to ASP.Net and keep seeing that it greatly simplifies the form validation process.

I really like how ESPN.com has their validations performed while the user is entering data, without having to click submit run a validation script.

An example:
Can ASP.Net be used to perform validations like the page linked above? If so does anyone have any links to sites that describe how this works?

Thanks for any help.
 
there is the compare validator that works something like this. I have used it in the past, although this is used to compare to text boxes to ensure they match. Its been a while since I've used it, but I believe it shows the validation error message as soon as any text is entered.
 
one clarification. asp.net services http requests/response. the contents transferred (pdfs, xls, html, json) is irrelevant.

webforms is MS's default html engine, which "simplifies" web development. webforms != asp.net. you can use the asp.net framework without using webforms. examples of this are monorail and ms mvc.

asp.net, and webforms are a server side frameworks. the validation preformed (as the user is typing) is done client side with javascript. most likely with a library like jquery, prototype or dojo. these can be implemented regardless of the server side language.

if you are just getting into web development, or you're comming from java/php I would encourage you to look at monorail or ms mvc and don't waist your time with webforms.

webforms is its own beast with concepts like viewstate, postbacks and a page lifcycle. none of this exists in web development, only webforms.

Jason Meckley
Programmer
Specialty Bakers, Inc.
 
Thanks for the help. I'll look into your suggestions.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top