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
Why to use Html.Partial in ASP.Net MVC?
Can we add constraints to the route? If yes, explain how we can do it?
How to bind table colum with gridview column?
what is entity sql?
What are the two ways to add constraints to a route?
Explain peek method in tempdata in asp.net mvc?
What is ado.net data provider? : Entity framework
What are the benefits of .net framework?
How we can register the Area in ASP.Net MVC?
What are the possible razor view extensions?
How can we determine action invoked from HTTP GET or HTTP POST?
How we can add the css in mvc?
What is the use of viewmodel in mvc?
What is the .net framework 3.0 (formerly winfx)?
explain how you can load related entities in ef (entity framework)?