一聚教程网:一个值得你收藏的教程网站

最新下载

热门教程

asp.net Page_Load 与 Page.IsPostBack 实例教程

时间:2008-12-18 编辑:简简单单 来源:一聚教程网

先来看看asp.net page_load 例子.


Sub Page_Load
   lbl1.Text="The date and time is " & now()
End Sub







再看看asp.net ispostback例子吧.


Sub Page_Load
if Not Page.IsPostBack then
   lbl1.Text="The date and time is " & now()
end if
End Sub

Sub submit(s As Object, e As EventArgs)
lbl2.Text="Hello World! www.111com.net  "
End Sub









热门栏目