Vipin Mittal
Can we store object in view state???
By Vipin Mittal in .NET on Jan 23 2018
  • Sanjay Sharma
    Feb, 2018 27

    Yes. You can but object has to be serialize.

    • 2
  • SaravanaPrasath Gangatharan
    Feb, 2018 1

    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

    • 2
  • Vipin Mittal
    Jan, 2018 23

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

    • 2
  • Surya Pratap Singh
    Mar, 2018 12

    Yes ,you can store object in viewstate

    • 1
  • Deepak  Singh
    Jan, 2018 30

    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.

    • 1
  • Sandhya Pothineni
    Dec, 2018 20

    yes, we can but that object need to be serialized before storing it.

    • 0


Most Popular Job Functions


MOST LIKED QUESTIONS