why should we use the postback ? mostly where should use the postback and uses of
postback.I searched on google but i didn't get what i am want.please help me
thank u
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.
Sakthivel GanesanPosted Jun 26, 2017, 9:36 AM
Saravanan VPosted Jun 26, 2017, 9:34 AM
First, let's see what happens when you browse a web page of a site.
Postback is a property of the web page in ASP.NET to indicate whether page is being rendered for the first time or is being loaded in response to a postback.
You could check the value by writing Page.IsPostBack or just IsPostBack.
When the page is requested for first time, this property returns false in the page load event and on successive requests returns true as value.
For eg., when you click a button which has server-side event handler, then the page is posted again and now on the page load, this property will return true as value.
In a typical scenario, while building web applications using ASP.NET, you could do the initialization work required for the aspx page. For eg., fetching the lookup data for dropdown controls, fetching the page level data and binding to input controls etc.
Hope this answer helps you.
Sundaram SubramanianPosted Jun 26, 2017, 7:56 AM