Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 Development Tools
 ASP.NET
 how to pass a datarow or A daset to another page

Author  Topic 

rtutus
Aged Yak Warrior

522 Posts

Posted - 2006-05-16 : 01:50:20
what's the best practice to pass a datarow or A dataset from page to another page and how pls?

Thanks.

dfiala
Posting Yak Master

116 Posts

Posted - 2006-05-16 : 06:25:44
If you want to persist a dataset between requests, using a session variable is usually the way to go.

In the page where is it created....

Session.Add("ADataSet", ds)

Then you can read it in other pages (or in the original page if you are posting back).

DataSet ds = CType(Session("ADataSet"), DataSet)


Dean Fiala
Very Practical Software, Inc
Now with Blogging...
http://www.vpsw.com/blogbaby
Microsoft MVP
Go to Top of Page
   

- Advertisement -