简单教程
提交运行
代码编辑器:
<script runat="server"> Sub submit(sender As Object, e As EventArgs) p1.InnerHtml = "<b>You wrote:</b> " & textarea1.Value End Sub </script> <!DOCTYPE html> <meta charset="utf-8" /> <form runat="server"> Enter some text:<br> <textarea id="textarea1" cols="35" rows="6" runat="server" /> <input type="submit" value="Submit" OnServerClick="submit" runat="server" /> <p id="p1" runat="server" /> </form>
运行结果: