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
How is mvc different from asp.net? : Asp.Net MVC
Define tracing.
How can you ensure a permanent cookie?
What is diff. Between abstract class and an interface?
What are the security types in ASP/ASP.NET? Different Authentication modes?
Is post back in asp.net?
What is the importance of Global.asax in ASP.NET?
What is sdlc process?
What is a ashx file?
Explain the various authentication mechanisms in asp.net.
Is asp.net and .net the same?
What language is asp.net written in?
Which is an advantage of application service providers?
What is the difference between user control an custom control?
Explain what is the procedure to create the environment for asp.net? : asp.net mvc