PC Review


Reply
Thread Tools Rate Thread

Datatable in ViewState... why does this work?

 
 
cmay
Guest
Posts: n/a
 
      11th Jul 2005
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.

 
Reply With Quote
 
 
 
 
Peter Rilling
Guest
Posts: n/a
 
      11th Jul 2005
It is serializable.

public class DataTable : MarshalByValueComponent, IListSource,
ISupportInitialize, ISerializable


"cmay" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> 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.
>



 
Reply With Quote
 
cmay
Guest
Posts: n/a
 
      11th Jul 2005
Interesting.

Why does MS say "The DataTable, DataRow, DataView, and DataViewManager
objects cannot be serialized and cannot be returned from an XML Web
service" from :
http://support.microsoft.com/default...b;en-us;306134

Does it need to be XMLSerializable for the webservice to use it?

 
Reply With Quote
 
=?Utf-8?B?TWljaGFlbCBCYWx0aWM=?=
Guest
Posts: n/a
 
      12th Jul 2005
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


"cmay" wrote:

> Interesting.
>
> Why does MS say "The DataTable, DataRow, DataView, and DataViewManager
> objects cannot be serialized and cannot be returned from an XML Web
> service" from :
> http://support.microsoft.com/default...b;en-us;306134
>
> Does it need to be XMLSerializable for the webservice to use it?
>
>

 
Reply With Quote
 
cmay
Guest
Posts: n/a
 
      13th Jul 2005
Are you asking IF they do, or stating THAT they do.


Chris

>>>>>Microsoft has example code returning DataTable objects from web services?

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


Staff Consultant II
Enterprise Web Services
Cardinal Solutions Group

 
Reply With Quote
 
=?Utf-8?B?TWljaGFlbCBCYWx0aWM=?=
Guest
Posts: n/a
 
      14th Jul 2005
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


"cmay" wrote:

> Are you asking IF they do, or stating THAT they do.
>
>
> Chris
>
> >>>>>Microsoft has example code returning DataTable objects from web services?

> --
> Direct Email: Michael.Baltic@RemoveCharacterÂ*sUpTo#NCMC.Com
>
>
> Staff Consultant II
> Enterprise Web Services
> Cardinal Solutions Group
>
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
ViewState and DataTable Peter Hemmingsen Microsoft ASP .NET 1 4th Jan 2010 10:53 AM
Add DataTable to ViewState Kiran Microsoft ASP .NET 1 25th Jan 2005 03:46 PM
DataTable in ViewState Pradeep Microsoft ASP .NET 3 27th Aug 2003 02:24 PM
DataTable in a ViewState Pradeep Microsoft ADO .NET 1 26th Aug 2003 10:02 PM
Insert a Datatable or Datagrid into ViewState? Stephajn Craig Microsoft ASP .NET 1 23rd Jul 2003 12:29 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:21 PM.