Datatable in ViewState... why does this work?

C

cmay

I was suprised to see that you can put a DataTable into viewstate on a
page.

Why does this work? I had understood that the DataTable was in
serializable, which I thought was a requirement of being stored in the
viewstate.
 
P

Peter Rilling

It is serializable.

public class DataTable : MarshalByValueComponent, IListSource,
ISupportInitialize, ISerializable
 
G

Guest

Microsoft has example code returning DataTable objects from web services?
--
Direct Email: Michael.Baltic@RemoveCharactersUpTo#NCMC.Com

Staff Consultant II
Enterprise Web Services
Cardinal Solutions Group
 
C

cmay

Are you asking IF they do, or stating THAT they do.


Chris
--
Direct Email: Michael.Baltic@RemoveCharacter­sUpTo#NCMC.Com


Staff Consultant II
Enterprise Web Services
Cardinal Solutions Group
 
G

Guest

I was stating that they do. I was questioning why you assumed this. In all
of the web services examples on msdn I have seen, they showed the performance
reasons why you would/wouldn't use a table/dataset.
--
Direct Email: Michael.Baltic@RemoveCharactersUpTo#NCMC.Com

Staff Consultant II
Enterprise Web Services
Cardinal Solutions Group
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top