How can i serialize this object?

Please support our ASP.NET advertiser: Intel Parallel Studio Home
Reply

Join Date: Sep 2008
Posts: 36
Reputation: Alexpap is an unknown quantity at this point 
Solved Threads: 0
Alexpap Alexpap is offline Offline
Light Poster

How can i serialize this object?

 
0
  #1
Sep 5th, 2009
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
Reply With Quote Quick reply to this message  
Join Date: Jun 2009
Posts: 432
Reputation: Ramesh S will become famous soon enough Ramesh S will become famous soon enough 
Solved Threads: 82
Ramesh S Ramesh S is offline Offline
Posting Pro in Training

Re: How can i serialize this object?

 
0
  #2
Sep 9th, 2009
You cannot store non-serializable objects in ViewState. It is not supported.

But it can be stored in in-proc session.
Reply With Quote Quick reply to this message  
Reply

Tags
serializesmo.table

Message:



Other Threads in the ASP.NET Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC