ASP.NET HTML 控件 Page.IsPostBack
asp.net html 控件 page.ispostback
<script runat="server">
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!"
end sub
</script>
<!doctype html>
<html>
<body>
<form runat="server">
<h3><asp:label id="lbl1" runat="server" /></h3>
<h3><asp:label id="lbl2" runat="server" /></h3>
<asp:button text="submit" onclick="submit" runat="server" />
</form>
</body>
</html>
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!"
end sub
</script>
<!doctype html>
<html>
<body>
<form runat="server">
<h3><asp:label id="lbl1" runat="server" /></h3>
<h3><asp:label id="lbl2" runat="server" /></h3>
<asp:button text="submit" onclick="submit" runat="server" />
</form>
</body>
</html>
相关文章
- ASP.NET Web Pages 教程
- ASP.NET Web Pages Razor
- ASP.NET Web Pages WebGrid
- ASP.NET Web Pages 类参考手册
- ASP.NET Web Pages WebMail 参考手册
- ASP.NET MVC 参考手册
- ASP.NET Hashtable
- ASP.NET XML 数据绑定
- ASP.NET Web 服务器控件
- ASP.NET ImageButton 控件
- WebSecurity CreateUserAndAccount 方法
- WebSecurity GeneratePasswordResetToken 方法
- WebSecurity GetCreateDate 方法
- WebSecurity RequireRoles 方法
- WebSecurity ResetPassword 方法
- ASP.NET HTML 控件 Calendar
- ASP.NET HTML 控件 Hyperlink
- ASP.NET HTML 控件 Repeater
- Textbox 3
- ASP.NET HTML 控件 Validationsummary