IsPostBack event in .NET page
What is IsPostBack event in .Net page?
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.
vinay gnPosted Jun 15, 2012, 12:52 AM
Amit PatelPosted Jun 14, 2012, 11:10 PM
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. An important point to be noted here is that each time a PostBack occurs, the entire page including the Page_Load is 'posted back' and executed.
private void Page_Load()
{
if (!IsPostBack)
{
// Validate initially to force asterisks
// to appear before the first roundtrip.
Validate();
}
}
Please see the below link.
http://dotnet.tekyt.info/?p=30
Satyapriya NayakPosted Jun 14, 2012, 9:27 PM
ispostback property
Gets a value that indicates whether the page is being rendered for the first time or is being loaded in response to a postback.
Please refer the below links
http://www.codeproject.com/KB/aspnet/IsPostBack.aspx
http://msdn.microsoft.com/en-us/library/system.web.ui.page.ispostback.aspx
Thanks