HyperLink1.Attributes.Add("onclick", "myAjaxFunction()");
<a id="MainContent_HyperLink1" onclick="myAjaxFunction();" href="Test.jpg">HyperLink</a>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)