Why Use Web Server Controls?

   

You should use Web server controls for three simple reasons:

  • Simplicity

  • Uniformity

  • Productivity

Where each of these begins and ends is hard to define. I find that because of the uniform properties and methods across the base class, Web server controls are much simpler to use than HTML server controls. For instance, across all Web server controls the width property determines the width of the Web server control. This isn't so with HTML server controls. For instance, with the HtmlInputText control you set the width of the control with the size property, but with the HtmlTextArea you set the width of the control with the Cols property. This can at the very least lead to confusion, which hampers productivity.

Additional areas of productivity will become more apparent in the next few chapters, where you will investigate two other types of server controls that I've mentioned several times and that you've seen in a few of the examples. They are the validation controls and ASP.NET list controls. These are equally a big deal, a time saver, and besides that, they are totally awesome objects.


   
Top


ASP. NET for Web Designers
ASP.NET for Web Designers
ISBN: 073571262X
EAN: 2147483647
Year: 2005
Pages: 94
Authors: Peter Ladka

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net