Hi guys,

I haven't been able to get a definite answer on this. I've been very kindly put on to resources regarding ViewState but they only talk about saving the state of controls - not C# objects.

I've also had a thorough look through my ASP.NET book & no joy there either.

So, my question is; in order for an instantiated, custom C# object to be retained between Postbacks, must ViewState be used?

Thanks very much indeed,

Dan :)

AFAIK To persist the data in our Page Life Cycle, We use State Management Mechanism. But to persist the object we use static Keyword. But be carefull if you are planning to implement this

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.