What is ViewState and How it is managed,Its
Advantages/Benefits?
Answers were Sorted based on User's Feedback
Answer / m.sivakumar
ViewState is a speacial object that ASP.NET uses to maintain
the state of page and all webcontrols/ServerControls within
it.
It is in this object preserves the states of various FROM
elements during Postbacks.
It is rendered to client(browser) as a Hidden
variable_VIEWSTATE under<form> tag.
we can also custom values to it.
| Is This Answer Correct ? | 20 Yes | 1 No |
Answer / anitha
viewState is a speacial object that ASP.NET uses to maintain
the state of page and all webcontrols/ServerControls within
it.
| Is This Answer Correct ? | 6 Yes | 4 No |
Answer / 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 |
Answer / kinjal panchal
View State:- The web is a sate less. In asp.net the sate of
the page maintain by Asp.net itself.In asp.net encrypted
values store in the hidden controls and this is maintain by
asp.net itself.
View state is managed by Asp.net itself.
if u wanna check then write "enableviewstate="flase"" in
.aspx page.
| Is This Answer Correct ? | 0 Yes | 1 No |
What is a session in programming?
I have an external link in my application say www.xyztest.com. Today this site works on http protocal. Tommorow it may run on https. So i cant hardcore the protocal in the site. When a user clicks on the link how can i know if the external site works on http or https and takes him to that place?
What is the use of response redirect in asp.net?
How many Directives r in ASP.NET?
What is query string with example?
What is state management techniques in asp.net?
How does SQL Server session state works
Explain how does asp page work?
• What are HttpHandlers? • What are HttpModules?
What is DTS package?
What is view state? where it stored? can we disable it ?
what is differences between bind and eval?
Visual Basic (800)
C Sharp (3816)
ASP.NET (3180)
VB.NET (461)
COM+ (79)
ADO.NET (717)
IIS (369)
MTS (11)
Crystal Reports (81)
BizTalk (89)
Dot Net (2435)
Exchange Server (362)
SharePoint (720)
WCF (340)
MS Office Microsoft (6963)
LINQ Language-Integrated Query (317)
WPF (371)
TypeScript (144)
Microsoft Related AllOther (311)