if (!IsPostBack)
ispostback?(complete information about this)
can any one
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Iftikar HussainPosted Aug 28, 2013, 8:10 AM
refer this link and go thru each post
http://www.c-sharpcorner.com/Forums/Thread/195826/what-is-use-of-ispostback-in-Asp-Net.aspx
Regards,
Iftikar
Sanjeeb LenkaPosted Aug 28, 2013, 8:08 AM
It is the property in the System.Web.UI namespace. .
IsPostback property is used to Gets a value that indicates whether the page is being rendered for the first time or is being loaded in response to a postback.
This IsPostBack property returns the boolean value either True or False.
In ASP.Net, the Page Load is event is fired every time a page is loaded. This is true even if the page is loaded as part of a submit button click. You may need to identify if the page load event is called as part of a page submit or if it is a fresh page rendering. Because, in case of page submit, you may want to skip several task like populating the data again etc.
The IsPostBack property can be used to determine if the page is submitted to itself. When a form is posted (submitted) back to the same page that contains it, it's called a post back. ASP.NET provides a property called IsPostBack that is TRUE when the page is being loaded as a result of a post back, and is FALSE otherwise.
We can check the value of this property and based on the value, we can populate the controls in the page. If the property is TRUE, that means it is a postback (submit) and no need to populate all the values again.
Rosi Sreenivasa ReddyPosted Aug 28, 2013, 8:05 AM
Iftikar HussainPosted Aug 28, 2013, 7:53 AM
Please refer the below link
http://msdn.microsoft.com/en-us/library/system.web.ui.page.ispostback.aspx
http://www.codeproject.com/Articles/68371/Detecting-Refresh-or-Postback-in-ASP-NET
Regards,
Iftikar