Click here to Skip to main content
15,896,417 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
please provide me the answer in simple way that i can easily understand.



thanks
Posted

postback : request is sent to the server for a page and it will go for a full trip to the server and get all the respective data.

Ispostback : this property will check if the page is called for the first time or not, suppose you open a page for the first time it will get postback and next time you click on a button on the same page to submit some data and now if you check the property ispostback is false cause the page is not called for the first time so it will only send / receive data which are required by that event.

autopostback : autopostback means when you want to send some request to the server on some control's event you can use this property. for example on text change event of the textbox you want to check whether username is unique is not then you create ontextchange event for that textbox and you also set the autopostback to true. so when the event occur it will send request to server with the username to check that it is unique or not. if autopostback is false your event will not be called.


i hope this will help you.
 
Share this answer
 
 
Share this answer
 
Further to Solution 1
Introduction to concept of Postback[^]

Explanation of autopostback[^]
 
Share this answer
 
PostBack is the name given to the process of submitting an ASP.NET page to the server for processing.


IsPostBack is a Boolean property of a page when is set (=true) when a page is first loaded. Thus, the first time that the page loads the IsPostBack flag is false and for subsequent PostBacks, it is true. Each time a PostBack occurs, the entire page including the Page_Load is ‘posted back‘ and executed.


Autopostback is the mechanism, by which the page will be posted
back to the server automatically based on some events in the web controls. In some of the web controls, the property called auto post back, which if set to true, will send the request to the server when an event happens in the control
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900