Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Controls > Sharing data across web forms?

Reply
Thread Tools

Sharing data across web forms?

 
 
Mervin Williams
Guest
Posts: n/a
 
      04-09-2004
I am using Infragistics UltraWebTab (a tab folder control for ASP.NET). My
tab folder control will include five tab pages with a separate web form on
each, and these web forms will share data.

My questions regard the data tier, that is, how I should construct the data
objects so as to reduce memory usage while optimizing page performance?

1. I'll be using data sets. How can I share a single data set across the
multiple web forms?
2. Can the data adapters be shared across the pages?
3. If not, what is the memory overhead for having multiple identical data
adapters open?

Thanks in advance,

Mervin Williams


 
Reply With Quote
 
 
 
 
William Ryan eMVP
Guest
Posts: n/a
 
      04-09-2004
1) You can use Session State or create a shard class (class with all shared
methods in VB.NET or static memebers in C#) (use the shared if you want the
data shared by All users, if you want it specific to the individual, session
state will work
2) Yes, but no need to do it. They area perfect object to implement as
Shared or static since their logic is the same across classes
3) DataAdapters are never 'open'. They are declared, possilbly
instantiated, but the only thing that 'opens' is connections. Like anything,
use only as much as you need. However, the dataadapter doesn't give a hoot
about the data per se. It just looks to rowstate to decide what it's going
to do with something. So you can create your own data access layer with
pretty much the same configuration and pass different datasetsto it.

Remember that you can fill a dataset/datatable with one dataadapter and
update say 3 different databases with 3 other data adapters never using the
first one again. I divorces itself from the data as soon as fill/update etc
is complete.

HTH,

Bill
"Mervin Williams" <> wrote in message
news:...
> I am using Infragistics UltraWebTab (a tab folder control for ASP.NET).

My
> tab folder control will include five tab pages with a separate web form on
> each, and these web forms will share data.
>
> My questions regard the data tier, that is, how I should construct the

data
> objects so as to reduce memory usage while optimizing page performance?
>
> 1. I'll be using data sets. How can I share a single data set across the
> multiple web forms?
> 2. Can the data adapters be shared across the pages?
> 3. If not, what is the memory overhead for having multiple identical data
> adapters open?
>
> Thanks in advance,
>
> Mervin Williams
>
>



 
Reply With Quote
 
 
 
 
Cor Ligthert
Guest
Posts: n/a
 
      04-09-2004
Hi Mervin,

In addition to Bill, when you really want to save memory you can also use
the viewstate, however you are transporting that to the client of course.

Cor


 
Reply With Quote
 
 
 
Reply

Thread Tools

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
mod_perl: sharing data across httpd childs ? howa Perl Misc 3 10-15-2008 06:07 PM
Master Pages: Sharing Across Web Servers =?Utf-8?B?Q2hyaXMgRmluaw==?= ASP .Net 2 02-28-2006 03:29 AM
Sharing data across web forms? Mervin Williams ASP .Net 2 04-09-2004 02:23 PM
Sharing data across web forms? Mervin Williams ASP .Net Datagrid Control 2 04-09-2004 02:23 PM
Sharing Session data across two projects Darren Oakey ASP .Net 0 12-19-2003 01:51 AM



Advertisments