JavaScript Editor JavaScript Editor     JavaScript Debugger

Previous Section Next Section

Main Page

Using the TemplateControl Class

The TemplateControl class is the base class of the System.Web.UI.UserControl class. (I'm using this class's full namespace to distinguish this class from the System.Windows.Forms.UserControl we also saw in this chapter.) Here is the inheritance hierarchy of that class:

Object
   Control
      TemplateControl

You can find the notable public methods of TemplateControl objects in Table 24.6 and their notable public events in Table 24.7. (This class has no non-inherited properties.) Note that as with other Web server controls, I am not listing the notable properties, methods, and events this class inherits from the Control class—you can find them in Chapter 15, Tables 15.1 to 15.3.

Table 24.6: Noteworthy public methods of TemplateControl objects.

Method

Means

LoadControl

Loads the user control from a user control file.

LoadTemplate

Loads a template from a file.

ParseControl

Parses an input string.

Table 24.7: Noteworthy public events of TemplateControl objects.

Event

Means

AbortTransaction

Occurs when a transaction is aborted.

CommitTransaction

Occurs when a transaction is committed.

Error

Occurs when an exception is unhandled.

Previous Section Next Section




JavaScript Editor Free JavaScript Editor     JavaScript Editor