ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage   interview questions urls   External Links  Contact Us     Login  |  Sign Up                      
tip       Ask Questions on ANYTHING, that arise in your Daily Life at     FORUM9.COM
Google
 
Categories >> Software >> Microsoft-Related >> ASP.NET
 
 


 

 
 Visual Basic interview questions  Visual Basic Interview Questions
 C Sharp interview questions  C Sharp Interview Questions
 ASP.NET interview questions  ASP.NET Interview Questions
 VB.NET interview questions  VB.NET Interview Questions
 COM+ interview questions  COM+ Interview Questions
 ADO.NET interview questions  ADO.NET Interview Questions
 IIS interview questions  IIS Interview Questions
Question
what is view state and its use
 Question Submitted By :: Manjunath
I also faced this Question!!     Rank Answer Posted By  
 
  Re: what is view state and its use
Answer
# 1
view state that automatically preserves property values of 
the page and all the controls on it between round trips.
 
Is This Answer Correct ?    0 Yes 0 No
Chinnu
 
  Re: what is view state and its use
Answer
# 2
Actully All HTML controls are state-less ie;-these can not 
store any type of clients inputs.when ever we send the page 
to server it will send this page as fresh one.so we loose 
the data what we have entered.

To store all these data (temporarly) in clients browsers ,
.Net provide a concept that is known as View state .View 
state store the data in encoding format,so that one can not 
gues it easily.
 
Is This Answer Correct ?    0 Yes 0 No
Rajesh
 
 
 
  Re: what is view state and its use
Answer
# 3
view state is used to find the current state of an object,
forexample with the help of view state we can find that 
whether is a button is click or not;
 
Is This Answer Correct ?    2 Yes 0 No
Vijay
 
  Re: what is view state and its use
Answer
# 4
viewstate is just like hidden field.Basically all html
controls are stateless .if u want maintain state for page
level we can use viewstate.
 
Is This Answer Correct ?    0 Yes 0 No
Nageswara Rao.g
 
  Re: what is view state and its use
Answer
# 5
ViewState is a built-in structure for automatically 
retaining values among multiple requests for the same page. 
The view state is internally maintained as a hidden field 
on the page but is hashed, providing greater security than 
developer-implemented hidden fields do.
Following are the benefits of using ViewState:- 
	No server resources are required because state is 
contained in a structure in the page code.
	Simplicity.
	States are retained automatically.
	The values in view state are hashed, compressed, 
and encoded, thus representing a higher state of security 
than hidden fields.
	ViewState is good for caching data in Web farm 
configurations because the data is cached on the client. 
Following are limitation of using ViewState:- 
	Page loading and posting performance decreases when 
large values are stored because 
	View state is stored in the page.
	Although view state stores data in a hashed format, 
it can still be tampered with because it is stored in a 
hidden field on the page. The information in the hidden 
field can also be seen if the page output source is viewed 
directly, creating a potential security risk. 
	If page get destroyed or refresh information which 
is stored in view state gets vanished.

Below is sample of storing values in view state. 
this.ViewState["EnterTime"] = DateTime.Now.ToString();
 
Is This Answer Correct ?    0 Yes 0 No
Rashmi Thakur
 
 
 
 
Other ASP.NET Interview Questions
 
  Question Asked @ Answers
 
Describe the difference between inline and code behind?  2
What is the method used to load generated dataset with data on the DataAdapter control ?  3
What is the difference between session state and session variables ? Digital-GlobalSoft1
Can i have both C# and vb.net code in same assembly?how? Wipro4
About the Usage of htmlencode and urlencode ? Cognizent1
How do you handle unhandled exceptions in ASP.NET?.  2
Hi! Could any 1 please suggest me a free practice online exam for asp.net exams.. thanks  1
What is the base class of .NET?  5
What are the differences between Dataset and DataReader? Accenture3
Suggest 3 best practices in detail for for Developing High Performance Web and Enterprise Applications Techno-Solutions2
How do you pass session values from one page to another ? Digital-GlobalSoft2
My website has around 100 aspx. Out of this, a certain 20 aspx files should be made available to the users only if they are logged in. How can I achieve this with the web.config file? Techno-Solutions1
What is the use of mcommand ? mcommand.fill(ds,"orderdetails"); Netsweeper1
Can we throw exception from catch block ? Accenture2
What is the best way to search any exact information on google? Intellevate2
About duration in caching technique ? Accenture2
why security trimming attribute?  1
with which controls you worked in Asp.net 2.0? HP2
Difference between Htttppost and Httpget Methods? Microsoft2
What is the namespace for encryption? Astadia1
 
For more ASP.NET Interview Questions Click Here 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com