What is view state and how this can be done and was this
there in asp?
Answers were Sorted based on User's Feedback
Answer / kautilya
ViewState is a hidden component which is being stored at
client side. It is basically used to retain the data of the
form during round trip to the server.
Viewstate is introduced in asp.net, it was not in classic
asp.
Is This Answer Correct ? | 20 Yes | 6 No |
Answer / arunajyothi.m
It is used to remember the controls state when page is
posted back to server.asp.net stores the viewsate on clien
site in hidden field _Viewstate in encrypted form.we can
enable/ disable the view state with "EnableViewstate"
property to True/False.
Is This Answer Correct ? | 14 Yes | 4 No |
Answer / arunajyothi.m
In simple we can say that once we store data in viewstate
that information can be used in round trips to webserver.
This was not there in Classic Asp.
Is This Answer Correct ? | 4 Yes | 0 No |
Answer / sudeesh i.g.
view state is state management technique used in ASP.net.
Its visibility is inside a current page. It is like session
state difference is that session for entire project all but
view state is visible for entire page. The data in view
state one page can't access from other page. it clear the
data when unload the page. it take more memory, it is not
suitable with gridview, detailsview, listview controls.
eg:
viewstate["id"]=request.querystring["id"];
or
viewstate["id"]=convert.toint32(gridview.datakeys[index][""].string();
like lot of example
Is This Answer Correct ? | 2 Yes | 0 No |
Answer / rajneesh hajela
ViewState is a hidden component which is being stored at
client side. It is basically used to retain the data of the
form during round trip to the server.
Is This Answer Correct ? | 1 Yes | 0 No |
Answer / ajay
view state is component where we can store the data in
client side using hidden controls it's nothing but it will
maintain the data during round trip to the server
Is This Answer Correct ? | 1 Yes | 0 No |
Answer / anand mishra
It is used to remember the controls state when page is
posted back to server.asp.net stores the viewsate on clien
site in hidden field _Viewstate in encrypted form.we can
enable/ disable the view state with "EnableViewstate"
property to True/False.
view state value from one web page can not be accessed from
another web page.
Is This Answer Correct ? | 1 Yes | 0 No |
Answer / asela chamara
It is the technique used by an ASP.NET Web page to persist
changes to the state of a Web Form across postbacks. The
view state of a page is, by default, placed in a hidden form
field named __VIEWSTATE.
Is This Answer Correct ? | 1 Yes | 0 No |
Answer / mahendran
View state: values are stored automatically hidden field in
client side
Is This Answer Correct ? | 1 Yes | 1 No |
Answer / nilesh lende
ViewState is a hidden component which is being stored at
client side. It is basically used to retain the data of the
form during round trip to the server.
Viewstate is introduced in asp.net, it was not in classic
asp.
Is This Answer Correct ? | 1 Yes | 1 No |
How many time you can fill dataset in asp.net?
I have a textbox , assign required field validator and i have two buttons 1) save 2) cancel , i want the validator run only when i click save button, don't validate cancel button , what to do?
7 Answers eMids, Infotech, Integra, TCS, Wipro,
What is Dynamic Web and discuss its usage with the help of real life examples?
What is the difference between the response.write() and response.output.write() methods?
what is state management?
What are assemblies and namespaces and explain the difference between them ?
How do you trap errors in ASP and how do you invoke a component in ASP ?
In a page there is dropdown list with the name of the cities like Bangalore,Pune,Chennai,Other and a text box that would enable the user to enter the name of the city if other is selected. How to enable validation on the text box if other is selected
What is the difference between dispose() and finalize()?
Question asked by one of interviewer in panal is given below: We have 2 user control on same page ,1st user control contains textbox and a button while 2nd user control have label. when ever we click on button click of 1st custom control button the value of the textBox will get updated into Label of 2nd custom control. How to do this.Your help will be appreciated.
Tell me what is the request flow used for asp.net mvc framework? : asp.net mvc
What is the purpose of session management?