ASP.NET Methods of the Server Controls


Method Description
AddAttributesToRender Adds HTML attributes and styles that need to be rendered to the specified HtmlTextWriterTag.
AddedControl Called after a child control is added to the Controls collection of the control object.
AddParsedSubObject Notifies the server control that an element, either XML or HTML, was parsed, and adds the element to the server control's control collection.
ApplyStyleSheetSkin Applies the style properties defined in the page style sheet to the control.
ClearCachedClientID Infrastructure. Sets the cached ClientID value to null.
ClearChildControlState Deletes the control-state information for the server control's child controls.
ClearChildState Deletes the view-state and control-state information for all the server control's child controls.
ClearChildViewState Deletes the view-state information for all the server control's child controls.
CreateChildControls Used in creating child controls.
CreateControlCollection Creates a new ControlCollection object to hold the child controls.
CreateControlStyle Creates the style object that is used to implement all style related properties.
DataBind Binds a data source to the server control and all its child controls.
DataBind(Boolean) Binds a data source to the server control and all its child controls with an option to raise the DataBinding event.
DataBindChildren Binds a data source to the server control's child controls.
Dispose Enables a server control to perform final clean up before it is released from memory.
EnsureChildControls Determines whether the server control contains child controls. If it does not, it creates child controls.
EnsureID Creates an identifier for controls that do not have an identifier.
Equals(Object) Determines whether the specified object is equal to the current object.
Finalize Allows an object to attempt to free resources and perform other cleanup operations before the object is reclaimed by garbage collection.
FindControl(String) Searches the current naming container for a server control with the specified id parameter.
FindControl(String, Int32) Searches the current naming container for a server control with the specified id and an integer.
Focus Sets input focus to a control.
GetDesignModeState Gets design-time data for a control.
GetType Gets the type of the current instance.
GetUniqueIDRelativeTo Returns the prefixed portion of the UniqueID property of the specified control.
HasControls Determines if the server control contains any child controls.
HasEvents Indicates whether events are registered for the control or any child controls.
IsLiteralContent Determines if the server control holds only literal content.
LoadControlState Restores control-state information.
LoadViewState Restores view-state information.
MapPathSecure Retrieves the physical path that a virtual path, either absolute or relative, maps to.
MemberwiseClone Creates a shallow copy of the current object.
MergeStyle Copies any nonblank elements of the specified style to the web control, but does not overwrite any existing style elements of the control.
OnBubbleEvent Determines whether the event for the server control is passed up the page's UI server control hierarchy.
OnDataBinding Raises the data binding event.
OnInit Raises the Init event.
OnLoad Raises the Load event.
OnPreRender Raises the PreRender event.
OnUnload Raises the Unload event.
OpenFile Gets a Stream used to read a file.
RemovedControl Called after a child control is removed from the controls collection of the control object.
Render Renders the control to the specified HTML writer.
RenderBeginTag Renders the HTML opening tag of the control to the specified writer.
RenderChildren Outputs the contents of a server control's children to a provided HtmlTextWriter object, which writes the contents to be rendered on the client.
RenderContents Renders the contents of the control to the specified writer.
RenderControl(HtmlTextWriter) Outputs server control content to a provided HtmlTextWriter object and stores tracing information about the control if tracing is enabled.
RenderEndTag Renders the HTML closing tag of the control into the specified writer.
ResolveAdapter Gets the control adapter responsible for rendering the specified control.
SaveControlState Saves any server control state changes that have occurred since the time the page was posted back to the server.
SaveViewState Saves any state that was modified after the TrackViewState method was invoked.
SetDesignModeState Sets design-time data for a control.
ToString Returns a string that represents the current object.
TrackViewState Causes the control to track changes to its view state so that they can be stored in the object's view state property.

Share this article on