Page.IsPostBack Property (VB.net) : Postback « Page « ASP.Net






Page.IsPostBack Property (VB.net)

<%@ 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>
           
       








Related examples in the same category

1.Demonstration of IsPostBack property (VB.net)
2.Page IsPostBack Demo (C#)