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                      
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
 SharePoint interview questions  SharePoint 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 ?    2 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 ?    1 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 ?    2 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 ?    3 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 ?    1 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 ?    1 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 ?    2 Yes 0 No
Sandeep
 
  Re: what is view state?
Answer
# 9
its used to store the value in client side 

viewstate ["viewstatevariablename"] = .....;
 
Is This Answer Correct ?    1 Yes 0 No
Baji
 

 
 
 
Other ASP.NET Interview Questions
 
  Question Asked @ Answers
 
Which keyword you should use for class not to extend? Which keyword to be used for making the class accessible within the assembly only what are the authentication mode of ASP.NET How will you call a JavaScript function using code-behind? How will you define the Session Timeout? What are the methods to validate client-side whether the input is a correct Date format? You want to write a log when ASP.NET application starts. Which is the best place to write that peice of code? What are the page load events and what is there order? What is the difference between abstract class and interface? What are the differences between DataSet and DataReader? What are the two properties other than DataSource, which is required to populate the Drop Down Menu? What is difference between String and StringBuilder Classes? What are differences between Custom control and User control? Ignis-Technologies1
Can you edit data in the Repeater control?  8
What r Callbacks in ASP.NET?  1
Types of session management in ASP.NET? Microsoft1
Where would you use an iHTTPModule, and what are the limitations of any approach you might take in implementing one?  1
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 the differance between .DLL & .EXE Infinite-Computer-Solutions8
what is diffgram ?  1
What is interval time of GC in .net  2
What is Active Directory? What is the namespace for that?  2
What is .Net3.0 and .Net3.5? Describe something about that Features..  1
What method do you use to explicitly kill a users session?  1
What is reflection and disadvantages of reflection ? Microsoft1
In C#.net application is run on linux michine  3
What does WSDL stand for?  7
Can we change the page layout in ASP.NET 2.0 as Grid Layout like in previous version TCS2
accessing a textbox that was created dynamically? for (int i = 0; i < t1; i++) { TextBox t2 = new TextBox(); t2.ID = "adf" + i; PlaceHolder1.Controls.Add(t2); } accessing data entered in the above created controls.  1
how to pass session value one url to another url.my code if session("user")="abc" then response.redirect("www.abc.com\client\home.aspx") end if. so how to pass value of session in browser url  1
How to authenticate users using web.config ? Accenture2
What are PDBs? Where must they be located for debugging to work?  2
 
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