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
What is the difference between cookie and session?
Explain ViewState?
Can we set which type of comparison we want to perform by the CompareValidator control?
What is meant by server side scripting?
What threading model used in asp and asp.net?
How will create assesblies at run time?
Explain the Order of events in an asp.net page?
Can I recieve both html markup for page and code in the asp.net web page's source code portion in the web browser?
Explain difference between dataset and datareader?
What are the differences between primary foreign and unique keys?
What is side-by-side execution? Can two applications, one using a private assembly and other using a shared assembly, be stated as side-by-side executables?
what is publisher?
What is the flow of processing of the request? : asp.net mvc
Explain how does asp page work?
Is asp.net and .net same?