asp.net.ph

HtmlAnchor.ServerClick Event

System.Web.UI.HtmlControls Namespace   HtmlAnchor Class


Occurs when the HtmlAnchor control is clicked.

[ VB ]
Public Event ServerClick As EventHandler

[ C# ]
public event EventHandler ServerClick;

[ C++ ]
public: __event EventHandler* ServerClick;

In [ JScript ], you can handle the events defined by a class, but you cannot define your own.

Event Data

The event handler receives an EventArgs containing data related to the ServerClick event.

Remarks

The ServerClick event is raised each time the user clicks on an HtmlAnchor control.

For more information about handling events, see Web Forms Events Model.

Example

The following illustrates how to attach a handler to the onServerClick event of an HtmlAnchor control.

<a id="showhideLink" runat="server" onServerClick="ShowHideAd"/>

 Show me 

See Also

HtmlAnchor Members Skip Navigation Links




Previous page Back to top Next page

Check out related books at Amazon

© 2025 Reynald Nuñez and asp.net.ph. All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note