Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


what is view state?

Answers were Sorted based on User's Feedback



what is view state?..

Answer / surya narayana panda

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 ?    6 Yes 0 No

what is view state?..

Answer / abhishek

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 ?    3 Yes 0 No

what is view state?..

Answer / sandeep

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 ?    3 Yes 0 No

what is view state?..

Answer / baji

its used to store the value in client side

viewstate ["viewstatevariablename"] = .....;

Is This Answer Correct ?    3 Yes 0 No

what is view state?..

Answer / madhunathanv

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 ?    2 Yes 0 No

what is view state?..

Answer / ranjith reddy

View State is going to store a value even though u refresh
the page.........

Is This Answer Correct ?    2 Yes 0 No

what is view state?..

Answer / mallikarjuna

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

what is view state?..

Answer / m.s.husain.razvi

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 1 No

what is view state?..

Answer / sujeet

If a site happens to not maintain a View State, then if a
user has entered some information in a large form with many
input fields and the page is refreshes, then the values
filled up in the form are lost...........

Is This Answer Correct ?    0 Yes 0 No

what is view state?..

Answer / madhunathanv

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 2 No

Post New Answer

More ASP.NET Interview Questions

What is cross page posting? How is it done?

0 Answers  


What is the use of directives & explain with example?

2 Answers   C Squared Systems,


Do you know about caching with the datasource controls?

0 Answers  


Explain MVC model binders?

0 Answers   B-Ways TecnoSoft,


What is difference Data List and Data Repeater Control ?

1 Answers   TCS,


How you will improve web application performance?

0 Answers   Wipro,


How will you write a web service for secure socket layer? What is secure socket? Have you done any socket programming? What is single thread and multi thread? What are the differences between .NET 1.1 and .NET 2.2? What is the command to connect to a StoredProcedure? How many types of Adapters are available in ADO.NET? Why DataAdapters are important? What is DataSet? It's important to compile the ASP.NET application before using it? What protocol you use to stream the audio and Video data? What are the different kind of network protocols? Write how will you connect to a database using DataSet? Why we use AJAX? What AJAX can do which JavaScript can't do? In a page using Windows Media API, if we press a button and in succession quickly press another button, what do you think will happen? Will the application wait for the first button response and then execute the second one or directly second button command will execute. What is the architecture of your application? What is connection pooling in SQL? Tell some functions of Windows Media API? How you will detect, whether the ActiveX is installed in the system before accessing it? What are validators are available in ASP.NET? What are the basic concepts of OOPS? What is abstraction?

0 Answers   Tesco,


What are the different validators in asp.net?

0 Answers  


What is meant by ispostback in asp net?

0 Answers  


Difference between server.Execute and response.redirect ?

5 Answers   Accenture, Keane India Ltd,


Explain State management in asp.net

0 Answers   BirlaSoft,


Differentiate between Server.Transfer and Response.Redirect with functionality? Why we can choose one over the other?

0 Answers   Siebel,


Categories