What is viewstate?
Answers were Sorted based on User's Feedback
Answer / jiten
View state is nothing but curent state of control and page
which can prisist during the postback
By using using u can store the state of control and page in
the hidden filed in cliend side or cline browser
it is store in HF form of encoded 64data
| Is This Answer Correct ? | 3 Yes | 0 No |
Answer / sivaprasad
i)Viewstate is nothing but persisting the state of the
controls across postbacks.
ii)In the page lifecycle Init,Load,Prerender(this is the
last stage for viewstate,what data you want to save here we
need modify that and it will be saved).
iii)Maintaining the data with in the page level.
| Is This Answer Correct ? | 3 Yes | 0 No |
Answer / nizath ali.u
Hi all this is Nizath Ali,
Viewstate is a client side state management.It
retains the page & control specific values between the
round trips(Post Back).
It always stores the values in one hidden form field
(control of ASP.NET) on the pge.
Brief:
Each webform page & controls on the page consists
of one "viewstate" property.
If we enable the viewstat property as true, it
automatically save the page & control specific values b/w
the round trips.
This viewstate is implemented with one hiddenform
field(control of ASP.NET) called "_VIEW STATE".That is the
viewstate stores the values in this hiddenform field
control.
This hidden form field is automatically created in
every webform page.
Now, what are the values stored in a viewstate
property,that are collected & formatted into a single
encoded string.
Then the encoded string is assigned to the "value"
property of the hiddenform field "_VIEW STATE".
Then it send to the client as apart of the webpage.
This kind of process is done by viewstate.
Drawback:
When we store the large values on the viewstae,it
makes the page slow down.
It stores the values on the "hiddenform field" so
no good security is their.
| Is This Answer Correct ? | 2 Yes | 0 No |
Answer / chowdary
It maintain the controls data under postback
implementation.It is implemented based on hidden field
concept.Generally viewstate is disabled for Password type
textboxs.
| Is This Answer Correct ? | 2 Yes | 2 No |
Answer / giri
ViewState is (asp.net object) mechanism by which page state
(information)(or values of the current page before postback)
is maintained between page post backs untill the page is running
| Is This Answer Correct ? | 0 Yes | 0 No |
What is the use of express session?
1.how to encrpt query string in asp.net? 2.there are 10000 records then i wnat display 5000 records one gridview and 5000 records another grid view what is the process?
Explain the difference between dataset and datareader.
what do you mean software devlopment ?
What are the events that happen when a client requests an asp.net page from iis server?
I have an excel file with data, i am importing this excel file data into Sqlserver 2005 database. while importing i am getting wrong data(ie, special characters) in one column(description column), upto some limit the data in that column is coming fine,after that data is coming like below. The "Walter" leather storage bench is one of our most popular styles. The top with the tufting and double stitching finish a very impressive piece. The size is perfect in front of beds and the storage adds another functional bonus. Open it up and sneak al���Ƴ�Â��ƴ�Ã��ƶ�Å�� al���Ƴ�Â��ƴ�Ã��ƶ�Å�� Is there anywhy to resolve this? (I am using recordset in coding for developing import process.) please help me soon.
What's the advantage of using System.Text.StringBuilder over System.String?
3 Answers IBM, IdeaLake, Infosys,
What is a swagger in web api?
Can we use a static function with a non-static variable?
How to write unmanaged code and how to identify whether the code is managed /unmanaged?
Do cookies store passwords?
What is query string? What are its advantages and limitations?
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)