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 a session government?
What is preprocessor in .net? Where it use?
Which namespace is used by ado.net?
What is the difference between mechine.config and web.config?
What is the purpose of url encoding?
What is custom attribute?
What is ASLM?
Which is the parent class of the web server control?
What are the different types of sessions in asp.net? Name them?
Give an example of what might be best suited to place in the application_start and session_start subroutines?
Can more than one person use the same login?
How do I open an ashx file?
What is the default timeout for a cookie?
What is an assembly? Explain its parts.
Where is asp.net view state stored?