Why you need validation in your web application?
Hi folks,
Did you ever use ASP.NET validation controls?
If you never heard or never use it before, see on the toolbox at the “validation” group.
Those are all validation controls.
- RequiredFieldValidator
- RangeValidator
- CompareValidator
- RegularExpressionValidator
- CustomValidator
- ValidationSummary
The main point of this control group is to be used to validate the input form entered by user before doing any postback.
But why?
As we can implement validation easily in code-behind.
Right?
It had to say Yes and No.
Yes, because validation coding in server-side (code-behind) is easier to code.
No, because while you know at the client that the data is invalid. Why you will let user postback to server?
Waste of bandwidth.
Totally waste!
This is the main reason why you have to use validation controls in your web forms.
Because it’ll help to reduce the unnecessary roundtrip between client and web server.
This will not affect much on the application that consumes less resource.
But it will be a big pain on the application that consumes much resource.
So, when you are dealing with input form.
Always use validation controls!
I know it will help you much.
Archives
- May 2012
- November 2011
- October 2011
- September 2011
- August 2011
- July 2011
- June 2011
- May 2011
- March 2011
- February 2011
- January 2011
- September 2010
- August 2010
- July 2010
- June 2010
- May 2010
- April 2010
- January 2010
- December 2009
- October 2009
- August 2009
- July 2009
- December 2008
- November 2008
- October 2008
- September 2008
- August 2008
- July 2008
- June 2008
- May 2008
- April 2008
- March 2008
- January 2008
- December 2007
- November 2007
- October 2007
- September 2007
- August 2007
- June 2007
Tags
.net 2008 asp.net asp.net mvc asus eee c# corona cpa doctrine dom eee eee pc Internet Marketing ios iPad iphone iPhone development iphone sdk javascript make money netbook online marketing pagerank passion php playstation playstation 3 ps3 ranking ror ruby on rails self help Self Improvement self motivation seo sql success symfony take action the secret ultra compact laptop ultra compact notebook vb.net web development wordpress




