Raised on the server when a user clicks an HtmlAnchor control hyperlink on a browser.
[Visual Basic] Overridable Protected Sub OnServerClick( _ ByVal e As EventArgs _ ) [C#] protected virtual void OnServerClick( EventArgs e ); [C++] protected: virtual void OnServerClick( EventArgs* e ); [JScript] protected function OnServerClick( e : EventArgs );
This server event causes a round-trip to occur from the client.
CAUTION This server control will raise an exception at runtime if the user attempts to wireup a OnServerClick handler and the HtmlAnchor control is not nested within a server HtmlForm control.
HtmlAnchor Class | HtmlAnchor Members | System.Web.UI.HtmlControls Namespace | HtmlForm