What is the property available to check if the page posted or not

Answer Posted / kirti

The Page_Load event handler in the page checks for IsPostBack property value, to ascertain whether the page is posted. The Page.IsPostBack gets a value indicating whether the page is being loaded in response to the client postback, or it is for the first time. The value of Page.IsPostBack is True, if the page is being loaded in response to the client postback; while its value is False, when the page is loaded for the first time. The Page.IsPostBack property facilitates execution of certain routine in Page_Load, only once (for e.g. in Page load, we need to set default value in controls, when page is loaded for the first time. On post back, we check for true value for IsPostback value and then invoke server-side code to

update data).

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

In Server how to check whether model has error or not in ASP.Net MVC

617


What is object service? : Entity framework

628


Is mvc 4 supporting windows azure sdk (software development kit) ?

554


What are the main features of asp.net mvc 4 used by asp.net web api?

547


How to use Jquery Plugins in ASP.Net MVC validation?

544






What is objectcontext? : Entity framework

585


Mention two instances where routing is not implemented or required?

741


What are the possible razor view extensions?

563


Will there be a .net compact framework 3.0 release with release of .net framework 3.0?

536


What are the 2 ways of adding constraints to a route?

548


What is code first? : Entity framework

564


What is the use of display modes?

573


How do you assign a value to a complex number 7 how has exception hand changed in .net framework 4.0?

500


What are the new enhancements done in default project template of asp.net mvc 4?

575


Explain the use of Inversion of control (IOC)?

598