I wish to fire an onclick event when I click a label. But it fails. It's fine if I use a button. I am rewriting my javascript menus to .net code. Or does any have a better solution? I wish to activate a .net sub when I click a JS-menu.
Code:<%@ Page Language="VB" %>
<script runat="server">
Sub panelhp(sender As Object, E As EventArgs)
lblHp.text = "Test"
end sub
</script>
<html>
<head>
</head>
<body>
<form runat="server">
<asp:label id="Label1" onclick="panelhp" runat="server" text="Test"></asp:label>
<asp:label id="lblHp" runat="server" text="Help"></asp:label>
</form>
</body>
</html>
