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
 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
 Microsoft Related AllOther interview questions  Microsoft Related AllOther Interview Questions
Question
what is view state?
 Question Submitted By :: Guest
I also faced this Question!!     Rank Answer Posted By  
 
  Re: what is view state?
Answer
# 1
When a form is submitted in classic ASP, all form values 
are cleared. Suppose you have submitted a form with a lot 
of information and the server comes back with an error. You 
will have to go back to the form and correct the 
information. You click the back button, and what 
happens.......ALL form values are CLEARED, and you will 
have to start all over again! The site did not maintain 
your ViewState.
 
Is This Answer Correct ?    1 Yes 0 No
Abhishek
 
  Re: what is view state?
Answer
# 2
ViewState is confined only to the page cycle ,
When the Viewstate is declared in the particular Method in 
the Page ,it can be called in other methods or Events when 
it is in Need.
ie.., it persists its state across postbacks
**********************'
ViewState Declared As:'
**********************'
ViewState["ViewStateVariableName"] = 1;
**********************************'
Above ViewState Can be called As: '
**********************************'
int number = (int) ViewState["ViewStateVariable"];

AFAIK
 
Is This Answer Correct ?    1 Yes 0 No
Madhunathanv
 
 
 
  Re: what is view state?
Answer
# 3
Sorry,
in the above example of declaration and calling View state
Key Name Should the same but it was not so while declaring 
the key name was "ViewStateVariableName" and while calling 
the key name was "ViewStateVariable" which won't work if 
so, it was by mistake,
 ie..,when called name was changed.., 
Cool:-)
 Below is the Correct Format:

**********************'
ViewState Declared As:'
**********************'
ViewState["ViewStateVariableName"] = 1;
**********************************'
Above ViewState Can be called As: '
**********************************'
int number = (int) ViewState["ViewStateVariableName"];

AFAIK
 
Is This Answer Correct ?    0 Yes 0 No
Madhunathanv
 
  Re: what is view state?
Answer
# 4
View State is going to store a value even though u refresh 
the page.........
 
Is This Answer Correct ?    0 Yes 0 No
Ranjith Reddy
 
  Re: what is view state?
Answer
# 5
ViewState is maintaing users state at Client Side.It 
provides property to store retention value between multiple 
webrequest.It stores value in html hidden field in web page.
 
Is This Answer Correct ?    0 Yes 0 No
Surya Narayana Panda
 
  Re: what is view state?
Answer
# 6
every control maintain its view state in form hidden field 
in server round trip by default each control maintain its 
state in hidden field.By default it is true
 
Is This Answer Correct ?    0 Yes 0 No
M.s.husain.razvi
 
  Re: what is view state?
Answer
# 7
Viewstate is stored in hidden input field and sent back to 
the server with every post back.
veiwstate is a concept of maintaing the controls props.
adv: 
redusing the manuel coding
it can not use persistant memory in client system or server 
system.
dis adv:
more amount of data can be transfered between client and 
web server
configaration :
we can figure viewstate at three levels
1.pagelevel
2.control level
3.application level
      cl:<input.......... enableviewstate="true[d]/false">
      pl:<%@page...........enableviewstate="tr true
[d]/false"%>
      al:this is required configurationfile
            <pages .......... enableviewstate="true
[d]/false>
 
Is This Answer Correct ?    0 Yes 0 No
Mallikarjuna
 
  Re: what is view state?
Answer
# 8
View State is a mechanism by which we can maintain the 
state during the subsequent postback of same .aspx 
page...means suppose we have a registration form to fill i 
fill all the entries but some entries were wrong than wht 
happen next i'll get only those value which was wrong means 
i won't fill all the value again just fill the wrong value 
only...
 
Is This Answer Correct ?    0 Yes 0 No
Sandeep
 

 
 
 
Other ASP.NET Interview Questions
 
  Question Asked @ Answers
 
How can you provide an alternating color scheme in a Repeater control?  1
Difference between datareader and dataset ? Microsoft1
Asp.net and asp ? differences?  1
what is strong name? Microsoft1
How Many types of Page Load functions in asp.net  2
Which property on a Combo Box do you set with a column name, prior to setting the DataSource, to display data in the combo box?  1
what is impersonation in ASP.NET? Merrill-Lynch4
How many Garbage Collectors are there for one Application or one Page Emphasis1
What does AspCompat="true" mean and when should I use it?  1
With example & diagram explain AutoPostBack.  1
after which page life cycle event all properties of control will be "fully loaded " FactorH6
Is it possible to disable the minimized icon of a popup window using window.open. Not using iframe concept? Take-United1
Explain how inline and code behind is used differently ?  1
.Net Doesn't offer Deterministic Distruction ? a) True b) False CTS4
Which control would you use if you needed to make sure the values in two different controls matched?  1
What are the different ways you would consider sending data across pages in ASP (i.e between 1.asp to 2.asp)? Net-Solution1
what r the Templeats in ASP.net? Intel5
Explain the differences between Server-side and Client-side code?  2
Trigger syntax in sql2000 Wipro1
Differentiate session and cookie  1
 
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