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