ASP.NET(vb.net) & Page.IsPostBack() - Page.IsPostBack() : This Page.IsPostBack() event occurs when user click postback or submit form ( IsPostBack() did not occurs when click hyperlink link or redirect URL).
ShotDev Focus:
- ASP.NET(vb.net) & Page.IsPostBack()
Example
IsPostBack.aspx
<%@ Page Language="VB" %> <script runat="server"> Sub Page_Load() IF NOT Page.IsPostBack Then Me.lblText.Text = "IsPostBack = False" Else Me.lblText.Text = "IsPostBack = True" End IF End Sub </script> <html> <head> <title>ShotDev.Com Tutorial</title> </head> <body> <form runat="server"> <asp:Label id="lblText" runat="server"></asp:Label><br /> <asp:Button id="Button1" runat="server" Text="Button"></asp:Button> <br /><br /><br /> <asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl="IsPostBack.aspx">Re-Link</asp:HyperLink></div> </form> </body> </html>
Screenshot
2palatable…
…