What Is Ispostback In Asp.net And Purpose Of Ispostback?

4

4 Answers

Anonymous Profile
Anonymous answered
Postback in an event that is triggered when a action is performed by a contol on a asp.net page. For eg. When you click on a button the data on the page is posted back to the server for processing.

Is Postback is normally used on page _load event to detect if the page is getting generated due to postback requested by a control on the page or if the page is getting loaded for the first time.
Gever Lances Profile
Gever Lances , asp.net ispostback, answered


Is Postback is normally used on page _load event to detect if the web page is  getting generated due to postback requested by a control on the page or if the  page is getting loaded for the first time. 

JJJJJJ BBBBBB Profile
JJJJJJ BBBBBB answered
If IsPostback is false then you know that the user is requesting the page for the first time. If it is true then you know that the user has click on some control on the page.
Anonymous Profile
Anonymous answered
Protected void Page_Load(object sender, EventArgs e)
    {
  if (!IsPostBack)
  {

  Response.Write("first time the page is loaded.");

  }
  else
  {
  Response.Write("the page is loaded more than once");
  }
}

Answer Question

Anonymous