Вы можете сделать это, используя методы страницы.
protected void Page_Load(object sender, EventArgs e)
{
Label3.Text = "this is label three";
Label3.Attributes.Add("OnMouseOver", "testmouseover()");
}
[webmethod]
public static void testmouseover()
{
// Implement this static method
}
и затем на стороне клиента сделайте это:
<script type='javascript'>
function testmouseover()
{
PageMethods.testmouseover();
}
</script>