简单教程
提交运行
代码编辑器:
<script runat="server"> Sub submit(sender As Object, e As EventArgs) Literal1.Text="I love ASP.NET!" End Sub </script> <!DOCTYPE html> <meta charset="utf-8" /> <form runat="server"> <asp:Literal id="Literal1" Text="I love ASP!" runat="server" /> <br><br> <asp:Button Text="Change Text" OnClick="submit" runat="server" /> </form>
运行结果: