PC Review


Reply
Thread Tools Rate Thread

Add DataTable to ViewState

 
 
Kiran
Guest
Posts: n/a
 
      25th Jan 2005
Hi,

Can Someone tell me how to add a DataTable to ViewState.

Thanks
Kiran


 
Reply With Quote
 
 
 
 
William F. Robertson, Jr.
Guest
Posts: n/a
 
      25th Jan 2005
I am surprised Kevin didn't answer this question.

DataTable table = new DataTable( "myTable" );

ViewState[table.ID] = table;

Are you having a specific problem storing it? One word of caution, if you
are storing a large amount of rows and columns, ViewState might not be the
best storage medium for you. The ViewState quickly becomes prohibitively
large.

bill

"Kiran" <(E-Mail Removed)> wrote in message
news:OG$(E-Mail Removed)...
> Hi,
>
> Can Someone tell me how to add a DataTable to ViewState.
>
> Thanks
> Kiran
>
>



 
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
Datatable in ViewState... why does this work? cmay Microsoft ASP .NET 5 14th Jul 2005 02:19 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 10:33 PM.