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


Please Help Members By Posting Answers For Below Questions

How do I upload a file from my ASP.NET page?

591


How do u declare static variable and how it is declared and what is its lifetime?

515


What is asynchronous call?

584


What are session state modes? List some of the important session state modes of asp.net.

533


Explain the differences between managed and unmanaged code?

500






Define a multilingual website?

530


What are sessions and cookies?

562


What is the difference between user control an custom control?

613


What is the difference between cookie and session?

502


What is the difference between equals() and == in c#?

564


Is asp.net and .net are same or different?

519


what are configuration files?

565


How many web config files can be created for an application?

449


What are cao and sao.

546


What is autopost?

523