Interviews6 answers
Can we store object in view state???
6 Answers
yes, we can but that object need to be serialized before storing it.
Sandhya PothineniPosted Dec 19, 2018, 10:21 PM EST
Yes ,you can store object in viewstate
Surya Pratap SinghPosted Mar 12, 2018, 12:08 AM EDT
Yes. You can but object has to be serialize.
Sanjay SharmaPosted Feb 26, 2018, 8:06 PM EST
Of course, We can store object in ViewState in string format.
If you want to access the values of the viewstate we need to use viewstate property in asp.net
SaravanaPrasath GangatharanPosted Feb 1, 2018, 2:08 AM EST
Yes. We can store object in ViewState as it stores the data in the string form although it works like dictionary. Just serialize the object and store the string in ViewState.
Deepak SinghPosted Jan 29, 2018, 11:00 PM EST
Yes,
Viewstate data is stored in one or more hidden fields as base 64-encoded strings.You can access viewstate information using the page's viewstate property,which express a dictionary object.Because the data in viewstate is stored as a string, only objects that can be serialized can be stored..
Vipin MittalPosted Jan 23, 2018, 7:44 AM EST


