Control::Dispose Method ()
Enables a server control to perform final clean up before it is released from memory.
Assembly: System.Web (in System.Web.dll)
The following code example overrides the HtmlTextWriter object associated with a control, and call the method on a Button control, named myButton. If an Exception is thrown when this version of the method is called, the control writes a message to the current HttpResponse object.method to close the
Available since 1.1