菜鸟学堂
在线运行
源代码
<script runat="server"> Sub lblClick(sender As Object, e As EventArgs) Label1.Text="You clicked the LinkButton control" End Sub </script> <!DOCTYPE html> <html> <body> <form runat="server"> <asp:LinkButton Text="Click me!" OnClick="lblClick" runat="server" /> <p><asp:Label id="Label1" runat="server" /></p> </form> </body> </html>
运行结果
在线运行
菜鸟学堂 edu.jb51.net