Hi,
Here i am coding you to create the onServerClick Event to the Anchor tag (a href ) in server Side find the code below
ASPX
Here i am coding you to create the onServerClick Event to the Anchor tag (a href ) in server Side find the code below
ASPX
<html>
<head runat="server">
<title></title>
</head>
<body>
<form id="form1" runat="server">
<div>
<a href="#" runat="server" onserverclick="linkclickeve">ClickMe</a>
</div>
</form>
</body>
</html>
C# CODE
using System.Web.UI.HtmlControls;
private void Page_Load(object sender, System.EventArgs
e)
{
HtmlAnchor HA = new
HtmlAnchor();
HA.ServerClick += new EventHandler(linkclickeve);
}
protected void
linkclickeve(object sender, System.EventArgs e)
{
}