Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Form input and validating

Thread Tools

Form input and validating

Posts: n/a
I'm trying to parse a form. The way I go about it now is that I simply
submit the form and use tryparse and assign the values to my entity

The problem is that I end up with a ton of if-statements like the one

//report error


if(no errors)
//report errors

1. question: Is this really the best way to go about it? Using if
statements along with TryParse
Furthere more since I'm using mask extenders the submitted result
might be _:_:_ which will make the if statement even more complex.

2. How can I handle the my errors in a smart way? and if there are
errors not submit?

Can I somehow take advantage of a formview ?

best regards,
Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Validating User Input (numeric only, and valid email address attributes) ASP .Net 2 10-01-2005 07:49 PM
Validating FORM input problem Paul D.Smith HTML 11 09-15-2004 11:46 PM
validating user form input with front end and backend darrel ASP .Net 1 06-24-2004 10:07 PM
validating input (Me.request.form.get(0)) Thierry ASP .Net 1 11-11-2003 10:50 AM
validating input from the form Thierry ASP .Net 1 11-10-2003 02:46 PM