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  Contact Us     Login  |  Sign Up                      
Do you have a collection of Interview Questions and interested to share with us!!
Please send that collection to along with your userid / name. ThanQ
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
 MTS interview questions  MTS Interview Questions
 Crystal Reports interview questions  Crystal Reports Interview Questions
 BizTalk interview questions  BizTalk Interview Questions
 Dot Net interview questions  Dot Net Interview Questions
 Exchange Server interview questions  Exchange Server Interview Questions
 SharePoint interview questions  SharePoint Interview Questions
 Microsoft Related AllOther interview questions  Microsoft Related AllOther 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 ?    4 Yes 4 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 ?    5 Yes 3 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 ?    7 Yes 4 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 ?    5 Yes 2 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 ?    2 Yes 4 No
Rashmi Thakur
 
  Re: what is view state and its use
Answer
# 6
view state that automatically preserves property values of 
the page and all the controls on it between round trips.
 
Is This Answer Correct ?    3 Yes 3 No
Karvendhan
[Emantras Interactive Technologies Pvt Lt]
 
  Re: what is view state and its use
Answer
# 7
when ever any server control can raise its event then
browser can send its request to server and at the server
side the event executes and the response comes back to
browser is known as postback mechanism .During this postback
mechanism all the server controls data are stored in viewstate.
but for some controls like textbox,dropdown list,radiobutton
list etc can implement IPOSTBACK DATA HANDLERS interface for
this controls even if we put enableviewstate to false.these
controls can store all the data in html bodys .Even if we
disable viewstate they maintain data in the controls
 
Is This Answer Correct ?    0 Yes 2 No
Om Nama Shiva Ya Namaha
 
  Re: what is view state and its use
Answer
# 8
View state .. the web is stateless when it is loaded.. so.
in view state . we can view in which suivation..
 
Is This Answer Correct ?    0 Yes 0 No
Guest
 

 
 
 
Other ASP.NET Interview Questions
 
  Question Asked @ Answers
 
what are Httpmodule and HttpHandler? Microsoft2
diff between Server.Transfer() and Server.Execute()  1
What are the two properties that are common in every validation control?  4
What Name space does the web page belon in the .net framework class hierarchy? Wipro1
On what object is the transaction in ADO.NET focused on? a) The command object b) The DataSet object c) The Connection object d) The DataAdapter object Syntax-Softtech4
How to Page Execute in asp.net(inside browser) Wipro1
What are various authentication mechanisms in ASP.NET ? TCS3
Can any one explain with the example how to capture the application error in Aplication_Error() method? Infosys1
What is mvc structure? given example? How to show gridview control from business components and using class object arrays?  1
How much data (Max K) can go into a QueryString? TCS4
what is SAP fullform SAP-Labs25
Difference between ISQL and OSQL??  1
Can you give an example of what might be best suited to place in the Application_Start and Session_Start subroutines?  1
What is Active Directory? What is the namespace for that?  2
Where is ViewState information stored? HCL6
How many web.copnfig can exists in a web application & which will be used ? MMTS3
What is WebService ? Tanla-Solutions6
what are webservices?In which circumstances we can go for webservices? Microsoft2
what are partial postbacks? Microsoft2
about view state and how validation controls will be executed on client and server Wipro2
 
For more ASP.NET Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

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