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

Is it possible to combine asp.net webforms and asp.mvc and develop a single web application?

550


What is entitytype? : Entity framework

542


What is meant by domain model?

555


What is net framework 3.0 ?

604


What are the two ways to add constraints to a route?

553






What is viewdata?

599


what is msl?

636


Do I need microsoft .net framework?

566


What is basic authentication in web api?

541


What is the .net framework?

587


what is complex type?

603


What is entity graph? : Entity framework

542


what is model first approach?

615


What are action filters?

616


How to change the action name in ASP.Net MVC?

583