<script runat="server">
Sub lblClick(sender As Object, e As EventArgs)
Label1.Text="您点击了 LinkButton 控件"
End Sub
</script>
<html>
<body>
<form runat="server">
<asp:LinkButton Text="请点击这里" OnClick="lblClick" runat="server" />
<p><asp:Label id="Label1" runat="server" /></p>
</form>
</body>
</html>