案例:ASP.net案例     状态:不可编辑再运行    进入竖版
 运行结果 
x
 
1
2
<script  runat="server">
3
Sub Page_Load
4
if Not Page.IsPostBack then
5
   lbl1.Text="The date and time is " & now()
6
end if
7
End Sub
8
9
Sub submit(s As Object, e As EventArgs)
10
lbl2.Text="Hello World!"
11
End Sub
12
</script>
13
14
<html>
15
<body>
16
<form runat="server">
17
<h3><asp:label id="lbl1" runat="server" /></h3>
18
<h3><asp:label id="lbl2" runat="server" /></h3>
19
<asp:button text="Submit" onclick="submit" runat="server" />
20
</form>
21
</body>
22
</html>
23