C# Corner
Tech
News
Videos
Forums
Trainings
Books
Events
More
Interviews
Jobs
Live
Learn
Career
Members
Blogs
Challenges
Certifications
Bounties
Contribute
Article
Blog
Video
Ebook
Interview Question
Collapse
Feed
Dashboard
Wallet
Learn
Achievements
Network
Refer
Rewards
SharpGPT
Premium
Contribute
Article
Blog
Video
Ebook
Interview Question
Register
Login
.NET
ADO.NET
Android
ASP.NET
C#
Databases & DBA
Design Patterns & Practices
Java
Learn iOS Programming
OOP/OOD
SharePoint
Software Testing
Web Development
WPF
View All
6
Reply
Can we store object in view state???
Vipin Mittal
7y
8k
1
Reply
Delete Row
Delete Column
Insert Link
×
Insert
Cancel
Embed YouTube Video
×
Width (%)
Height (%)
Insert
Cancel
Table Options
×
Rows
Columns
First row as header
Create Table
Insert Image
×
Selected file:
Alignment
Left
Center
Right
Select an image from your device to upload
Upload to Server
Cancel
Submit
Yes. You can but object has to be serialize.
Sanjay Sharma
7y
2
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 Gangatharan
7y
2
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 Mittal
7y
2
Yes ,you can store object in viewstate
Surya Pratap Singh
7y
1
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 Singh
7y
1
yes, we can but that object need to be serialized before storing it.
Sandhya Pothineni
7y
0
Why object.ToString() method always there in asp.net...tell me about real reason behin this??????
Difference in Property Triggers and events in WPF application?????
Message