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.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Satyapriya NayakRank #47 · 31.5K reputationPosted Jun 14, 2012, 5:27 PM EDT
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
Amit PatelRank #622 · 3.8K reputationPosted Jun 14, 2012, 7:10 PM EDT
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
vinay gn11 reputationPosted Jun 14, 2012, 8:52 PM EDT