web 2.0

ASP.NET(vb.net) & Page.IsPostBack()

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

ASP.NET(vb.net) & Page.IsPostBack()
.
.
.
Download this script.
Download

1 Star2 Stars3 Stars4 Stars5 Stars6 Stars7 Stars8 Stars9 Stars10 Stars (No Ratings Yet)
Loading ... Loading ...

One Response to “ASP.NET(vb.net) & Page.IsPostBack()”

  1. 2palatable…

Leave a Reply

You must be logged in to post a comment.