Raises the HtmlTextArea.ServerChange event of the System.Web.UI.HtmlControls.HtmlTextArea control. This allows you to provide a custom handler for the event.
- e
- A EventArgs that contains the event data.
The HtmlTextArea.ServerChange event is raised when the content of the System.Web.UI.HtmlControls.HtmlTextArea control changes between posts to the server.
This event is only raised when the user initiates a post to the server, such as by clicking a submit button. This event does not cause a post to the server to occur.
The control must have viewstate enabled for the HtmlTextArea.ServerChange event to work correctly.
This event is commonly used to perform data validation on the System.Web.UI.HtmlControls.HtmlTextArea control when the user updates the text in the control.
Raising an event invokes the event handler through a delegate. For more information, see [<topic://cpconProvidingEventFunctionality>].
The HtmlTextArea.OnServerChange(EventArgs) method also allows derived classes to handle the event without attaching a delegate. This is the preferred technique for handling the event in a derived class.