C#
What is the use of (!IsPostBack)
if (!IsPostBack)
{
// Validate initially to force asterisks
// to appear before the first roundtrip.
Validate();
}What is the use of (!IsPostBack)
if (!IsPostBack)
{
// Validate initially to force asterisks
// to appear before the first roundtrip.
Validate();
}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
Ranjit PowarRank #553 · 4.4K reputationPosted May 8, 2016, 9:22 PM EDT
Vipan SharmaRank #1,589 · 999 reputationPosted May 8, 2016, 10:06 PM EDT
Francis SusaimichaelRank #466 · 5.4K reputationPosted May 9, 2016, 5:21 AM EDT
First of all, "IsPostBack" is an property in ASP.Net Page andit returns truewhen the page postedback by server otherwise it will return true.
Say for example, you have a button in an aspx page and when yourequest the page in the url, the "ispostback" propertyset as "false"when you click on the buttonthe page will submit ( postedback)to the web server (IIS) and the page is processed by the IIS and sent it to browser. At this time it will set the "ispostback" as true.
Rajeesh MenothRank #118 · 18.4K reputationPosted May 9, 2016, 6:29 AM EDT
Munesh SharmaRank #174 · 13.9K reputationPosted May 9, 2016, 8:15 AM EDT
it return true if the page is being loaded in response to a client postback; else set to false. for example if i have page and it has button control.
when page is first lime load this property is set to false.
when use click on button then client post bask is occur so it set to true.