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 do I upload a file from my ASP.NET page?
How do u declare static variable and how it is declared and what is its lifetime?
What is asynchronous call?
What are session state modes? List some of the important session state modes of asp.net.
Explain the differences between managed and unmanaged code?
Define a multilingual website?
What are sessions and cookies?
What is the difference between user control an custom control?
What is the difference between cookie and session?
What is the difference between equals() and == in c#?
Is asp.net and .net are same or different?
what are configuration files?
How many web config files can be created for an application?
What are cao and sao.
What is autopost?