O'Reilly logo

A Programmer's Guide to .NET by Alexei Fedorov

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

7.2. Server controls

Server controls are implemented in the System.Web.UI namespace – which can be found in the system.web.dll assembly – and its secondary namespaces – System.Web.UI.HtmlControls and System.Web.UI.WebControls. All server controls are indirectly based on the Control class, which we covered in the previous chapter when we discussed web forms pages.

Let’s just briefly refresh our memories about the main properties of the Control class.

  • ID Used to identify a control.

  • Controls Indicates a collection of child controls.

  • Page Specifies the Page object that contains the control.

  • Parent Specifies the control to which this control belongs.

  • ViewState Used for persisting data across round trips between client and server.

  • UniqueID Contains ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required