What is the difference between autopostback and ispostback?

Questions by parvesh devi

Showing Answers 1 - 4 of 4 Answers

Amit Malhotra

  • Jul 3rd, 2007
 

Autopostback - Property of the control
IsPostback - Property of the Page class

Autopostback - get and set property to control postback on changes made for control.
for e.g.
this.ListBox1.AutoPostBack = true;
whenever user will select item, the page will get post back.

IsPostback - get property of the Page class, to check if page is post back i.e. if it is true then page has already executed Init function of the page else it is first time the page has requested to be executed.


Hope it will help.

vivek

  • Jul 12th, 2011
 

postback is the property which is applied for the controls and
ispostback is the property for the complete page

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions