adspace


What should you do to store an object in a viewstate?

Answer Posted / Ankit Jauhari

To store an object in ViewState in ASP.NET, first serialize the object using the System.Web.UI.ScriptBuilder or BinaryFormatter classes, and then add it as a key-value pair to the ViewState dictionary.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Write the .net syntax for 'while loop'?

1143