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 / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between a cookie and a pixel?

970


How do I debug an asp.net application that was not written with visual studio.net and that does not use code-behind?

1054


Explain the main function of url routing system in asp.net mvc? : asp.net mvc

1068


Are cookies stored on server or client?

1001


Which object is used to encapsulate the state of the client and the browser in ASP.NET?

1148


How can we pass info between 2 asp.net pages?

1137


Why do we use sessions?

1058


What is the purpose of asp.net?

1047


What is http protocol and how it works?

1097


What is clr? Difference between clr & cts?

1247


What are the uses of list view control in Asp.net?

1091


WSDL means?

1191


List the major built-in objects in asp.net?

1046


What are different types of api?

1062


Explain about Multi-Language integration?

1066