What is ViewState and How it is managed,Its
Advantages/Benefits?
Answer Posted / bhoj
is view state is used to persist the web control data across
the post backs.? the answer is NO , because the data of web
control is persisted because of the loadPostbackData() of
life cycle.
view state it will be enable in the OnInitComplete() of page
life cycle,or we can enable at any time of page life cycle
by calling the TrackViewStae() method.
view state is used to store the data at page level.
advantages: if the data is small, store it in view state by
doing this no need to call to database to get the details
but for large data page performance will decrease.
| Is This Answer Correct ? | 1 Yes | 1 No |
Post New Answer View All Answers
Explain diff. Between friend and protected friend?
What is the function of the ViewState property?
What is the concepts of globalization and localization in .net?
State differences between MVC and WebAPI
Why we are using mvc instead of asp.net? : Asp.Net MVC
What is the caspol.exe tool used for?
Describe the Server Control Events of ASP.NET?
What are the different types of events are occured when a client requests an ASP.NET page from IIS server?
What is asp.net futures?
If you want to write your own dot net language, what steps you will you take care?
What is asp net theme?
Define repository pattern in asp.net mvc? : asp.net mvc
Explain different types of validators in asp.net?
What is the use of HttpHandlers? When to use this?
What is the part of url?