<%@ Page Language="vb" %>
<html>
<head>
<title>IsPostBack property example</title>
<script runat="server">
Sub Page_Load()
If Page.IsPostBack Then
Message.Text = "PostBack"
Else
Message.Text = "Non-PostBack"
End If
End Sub
</script>
</head>
<body>
<form runat="server">
<asp:button id="post" Text="Post page" runat="server"/>
<asp:label id="Message" runat="server"/>
</form>
</body>
</html>
|