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
What are Scaffold templates in ASP.Net MVC?
List out few different return types of a controller action method?
Explain what is the difference between view and partial view?
What is conceptual model? : Entity framework
What filters are executed in the end?
What are actions in asp.net mvc?
what is model first approach?
what is more complex to implement property, methods or event? how can I define criteria to compare the difficulty of implementation between them? for example the number of methods wanted to implements property is 2 methods. how many methods I need it to implements events?
What are sections?
Explain what platforms does the .net framework run on?
Will there be a .net compact framework 3.0 release with release of .net framework 3.0?
What are the advantages of mvc over asp.net?
Which .net framework is installed?
Can you explain renderbody and renderpage in mvc?
What are the advantages of asp.net mvc?