IsPostBack
-
HI, I want to know that, What is the important of ISPostBack in asp.net??? Can AnyOne help???
-
HI, I want to know that, What is the important of ISPostBack in asp.net??? Can AnyOne help???
-
HI, I want to know that, What is the important of ISPostBack in asp.net??? Can AnyOne help???
IsPostBack is a property by which you can check that is your page is loading first time or postbacking. In ASP.NET application every event (like clicking a button) causing postback of same page. So the code block written in the page load will execute every time. If you does not want to execute it everytime then enclose that code block with a if(!IsPostBack){}.
PANKAJ MAURYA SOFTWARE ENGINEER (Daffodil S/W) Gurgaon
-
HI, I want to know that, What is the important of ISPostBack in asp.net??? Can AnyOne help???
HI, I
Quote:
IsPostBack is a Page level property, that can be used to determine whether the page is being loaded in response to a client postback, or if it is being loaded and accessed for the first time.
example. if(!ispostback){ } else { } When page response very first time then it go into if condition, after that your else statement will call always.
hi
-
HI, I want to know that, What is the important of ISPostBack in asp.net??? Can AnyOne help???
This property is used to restrict the postback of page every time unnecessarily. check like below in you code. if(!IsPostback) { //this is your first visit. } else { //this is not your first visit. }
Sridhar Thota.