in

CodeSmith Community

Your Code. Your Way. Faster!

Form Validation Best Practices

Last post 11-19-2007 5:51 PM by thisbetom. 0 replies.
Page 1 of 1 (1 items)
Sort Posts: Previous Next
  • 11-19-2007 5:51 PM

    • thisbetom
    • Not Ranked
    • Joined on 06-27-2007
    • Posts 6
    • Points 150

    Form Validation Best Practices

    Hello, 

     I'm a MIS grad senior at the UT Program and have recently taken on a few consulting projects for some small startups etc... I'd like to start by saying that I love NetTiers and the aid it has brought to my business layer generation and maintenance... 100% Lifesaver.

     That said, my consulting background has consisted of a few patchwork jobs here and there with only one "official" consulting experience at a smaller .NET firm in Austin (4 months).  I learned ALOT about business layer code and practices, but only through the eyes of the 2 other coders on the team.

     I have a few specific questions/issues that I am running into on the current project.

    1. How do you do friendly Data Validation for your form values? Is the current way appended correct? Are there any examples of a better structure? Have any personal thoughts/feelings about where to take it?  Can you give any examples of the past project structures you worked on that you thought worked best?

     I currently have a "Master.PushErrorMessage" script that runs and pushes everything from a bool function "IsValidPage".  So If not isvalidpage then push the error message and exit sub.  The IsValidPage function consists of "Take the textbox inputs and validate the input (does it convert to an integer etc...). If no, then set bool = false, append statement to error message. 

    2.  To this date, I sort of jumped into the code withoutfully researching the Admin side of the generated solution site in detail (I have mainly been using the entities and DataRepository).  Do you have any recommendations for focus if I were to want to learn other features ( various web controls such as entityDropDowns etc...)?

    If appropriate, please consider this an open forum for the questions above.  I'd like to hear some enthusiam and success stories/examples if you have them!

     Thanks in advance,

    -Tom 

    • Post Points: 5
Page 1 of 1 (1 items)
Copyright © 2008 CodeSmith Tools, LLC
Powered by Community Server (Commercial Edition), by Telligent Systems