Hello all,
what i wanted to ask is, if someone does know how to Serialize or mark as Serializable a Microsoft.SqlServer.Managment.Smo.Table, because when i try to add an instance of a smo.Table to Viewstate, it throws me the following error:

Type 'Microsoft.SqlServer.Managment.Smo.Table' is not marked as Serializable.


Thanx in advance :),
Alex

You cannot store non-serializable objects in ViewState. It is not supported.

But it can be stored in in-proc session.

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.