“ViewState
is used to retain the state of server-side objects between page post backs.”
- ViewState is how ASP.NET Web pages persists data across requests.
- ViewState can be encrypted to address security concerns.
- ViewState values are accessible with the same page
- ViewState is a state management technique build in ASP.NET.
- ViewState basically maintains the state of the pages between postbacks.
- ViewState maintain the session within the same page.
- ViewState allows the state of objects to be stored in a hidden field on the page.
Where the viewstate is stored after the page
postback?
Ans: ViewState
is stored in a hidden field on the page at client side. ViewState is
transported to the client and back to the server, and is not stored on the
server or any other external source.
How long the items in ViewState exists?
Ans: They
exist for the life of the current page.
What is the lifespan for items stored
in the ViewState?
Ans: The items stored in ViewState live
until the lifetime of the current page expires including postbacks to
same page.
View state is client-side or server side
state management techenique?
Ans: View state is client-side state management techenique
Ans: View state is client-side state management techenique
How do you enable or disable a ViewState at the page level?
Ans: At the page level you can enable or disable ViewState using EnableViewState property of the page.
What is the name of the hidden form field in
which ViewState of the page is saved?
Ans: __ViewState
Ans: __ViewState
Is ViewState of one page available to another
page?
Ans: No, ViewState of a Page is available only in that page. You cannot access ViewState of one page from another page.
Ans: No, ViewState of a Page is available only in that page. You cannot access ViewState of one page from another page.
Comments
Post a Comment