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?

Answer Posted / jeyaseelan

view state is nothing but store all the current page
informations and the control details when the page is
postback.all the control details and values to be stored in
hidden field.Those hidden fields are creating dynamically
depending upon the page placed controls.If you want to
fetch the values of the previous page control(ex:'Name' is
the previous page control Id)

Get the value of name from second page

sample code:

string get_Name=viewstate["Name"].Tostring();

Is This Answer Correct ?    5 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are multicast delegates?

1127


Explain me why do we use msmq?

1091


Write the .net syntax for 'while loop'?

1115


Explain the different parts of an assembly?

1099


What's singlecall activation mode used for in .net?

1038


What are the different types of memory in .net?

1145


What are the new features in .net core?

1091


How many types of transactions are there in com + .net ?

1116


Tell me what is serialization?

1091


What are the different types of remote object creation mode in .net?

1068


How is meant by dll in .net?

1098


What is the difference between user control an custom control? Advantages/disadvantages?

1072


What is lazy initialization?

1124


What is a web service in .net?

1143


How to Create and Consume a Web Service?

3476