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                      
info       Did you received any Funny E-Mails from your Friends and like to share with rest of our friends? Yeah!! you can post that stuff   HERE
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
 
what is view state? Satyam9
what is view state  4
What is deference between asp.net, vb.net, c# & j#  2
What is web.config. How many web.config files can be allowed to use in an application? Accenture5
what is stateless ?  2
What base class do all Web Forms inherit from?  1
Explain the differences between Server-side and Client-side code?  2
what is code access security,role based security explain with example Infosys1
You have two buttons in web form and i clicked on one of the button, so how do i find which button i've clicked on the form in my page load? INDUS14
About dataset and data mining ? Cognizent1
What are the disadvantages of view state / what are the benefits?  2
Can you please anyone explain in detailed Webservices concepts in Asp.net?  1
The question is "After sign out from email, Then we click a back button , we can't go to the previous page ie inbox page, It is displaying a login form only" My doubt is How will code this , If u know please blog me through this or my mail. my mail id is yoursguna@gmail.com TCS2
How Web Services help Us? What r the difference between Remoting and webservices Protech4
Why is validation always done on the server? When does that occur?  1
When would you not use the oleDbConnection object? a) To connect to an SQL 7.0 database. b) To connect to a DB/2 database. c) To connect to an Access database. d) To connect to an SQL 6.5 database. Syntax-Softtech5
All kind of access specifiers for a class and for methods ? MMTS1
What is a Windows Service and how does its life cycle differ from a standard EXE?  2
Your ASP.NET application displays sales data on a page. You want to improve performance by holding the page in memory on the server for one hour. You want to ensure that the page is flushed from memory after one hour, and that the page is re-created when the next request for the page is received. What should you do? A . Initialize a new instance of the Cache class in the Application.Start event handler. B . Initialize a new instance of the Timer class in the Page.Load event handler. C . Set the Duration attribute of the OutputCache directive in the page. D . In the Web.config file, set the timeout attribute of the sessionState element. Syntax-Softtech5
Hi , I am Basha. I am searching a job in dotnet.Plz tell me the order of page events in asp.net 2.0> plz send faq's related to c#.net,asp.net,sqlserver2000 etc. to my mail-id : bashask.ss@gmail.com Sapient4
 
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