you can simply call you web service with the help of jquery. Here is the sample coe for you.
<script src="http://code.jquery.com/jquery-1.10.1.min.js"></script>
<script src="http://code.jquery.com/jquery-migrate-1.2.1.min.js"></script>
<script type="text/javascript">
function abc()
{
$.ajax({
type: "POST",
contentType: "application/json; charset=utf-8",
url: "Webmethod.aspx/BindDataToDropDown",
data: "{}",
dataType: "Json",
success: function (data) {
// this function is called when you web method executed sucessfully.
// write code for binding data returned from web method.
})
}
});
}
</script>
Just simply call the function "abc()" on mouse hover event of the control it will the call the web service.
<img onmouseover="abc()" border="0" src="smiley.gif" alt="Smiley" width="32" height="32">