473,396 Members | 1,929 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Global dataset

I'd like to have a dataset that will be declared on a main ASPX page and
visible in any custom or user control.
Is there a way of doing that?

Thanks
Nov 18 '05 #1
7 2877
http://tinyurl.com/3nn6d

Karl's suggestion to use an interface had me complete redesign my project.
Works wonderful!!!

Greg

"Mark Goldin" <ma********@comcast.net> wrote in message
news:OJ****************@TK2MSFTNGP15.phx.gbl...
I'd like to have a dataset that will be declared on a main ASPX page and
visible in any custom or user control.
Is there a way of doing that?

Thanks

Nov 18 '05 #2
Cache it in Application Cache, if you want it to be truly global, or Session
State, if you only want it to be global by user.

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.

"Mark Goldin" <ma********@comcast.net> wrote in message
news:OJ**************@TK2MSFTNGP15.phx.gbl...
I'd like to have a dataset that will be declared on a main ASPX page and
visible in any custom or user control.
Is there a way of doing that?

Thanks

Nov 18 '05 #3
What would the C# version be?

"Greg Burns" <greg_burns@DONT_SPAM_ME_hotmail.com> wrote in message
news:Of*************@TK2MSFTNGP11.phx.gbl...
http://tinyurl.com/3nn6d

Karl's suggestion to use an interface had me complete redesign my project.
Works wonderful!!!

Greg

"Mark Goldin" <ma********@comcast.net> wrote in message
news:OJ****************@TK2MSFTNGP15.phx.gbl...
I'd like to have a dataset that will be declared on a main ASPX page and
visible in any custom or user control.
Is there a way of doing that?

Thanks


Nov 18 '05 #4
A mess, if I tried to write it. :^)

Greg

"Mark Goldin" <ma********@comcast.net> wrote in message
news:us*************@TK2MSFTNGP12.phx.gbl...
What would the C# version be?

Nov 18 '05 #5
I am not sure if that what I need.
All I want is to have that dataset accessible from the entire project.

"Kevin Spencer" <ks******@takempis.com> wrote in message
news:#s**************@TK2MSFTNGP15.phx.gbl...
Cache it in Application Cache, if you want it to be truly global, or Session State, if you only want it to be global by user.

--
HTH,
Kevin Spencer
.Net Developer
Microsoft MVP
Big things are made up
of lots of little things.

"Mark Goldin" <ma********@comcast.net> wrote in message
news:OJ**************@TK2MSFTNGP15.phx.gbl...
I'd like to have a dataset that will be declared on a main ASPX page and
visible in any custom or user control.
Is there a way of doing that?

Thanks


Nov 18 '05 #6
Using the Cache is probably a good idea, if you need the same dataset for
the "enitre project".

Reading a property of the hosting Page is useful for me simply because my
dataset is user specific and I didn't want to store it in session on the
server. My reason for that is probably flawed anyways. :^)

Greg

"Mark Goldin" <ma********@comcast.net> wrote in message
news:uU**************@TK2MSFTNGP09.phx.gbl...
I am not sure if that what I need.
All I want is to have that dataset accessible from the entire project.

"Kevin Spencer" <ks******@takempis.com> wrote in message
news:#s**************@TK2MSFTNGP15.phx.gbl...
Cache it in Application Cache, if you want it to be truly global, or

Session
State, if you only want it to be global by user.

--
HTH,
Kevin Spencer
.Net Developer
Microsoft MVP
Big things are made up
of lots of little things.

"Mark Goldin" <ma********@comcast.net> wrote in message
news:OJ**************@TK2MSFTNGP15.phx.gbl...
> I'd like to have a dataset that will be declared on a main ASPX page
> and
> visible in any custom or user control.
> Is there a way of doing that?
>
> Thanks
>
>



Nov 18 '05 #7
<Reading a property of the hosting Page
That's what I think I need.

"Greg Burns" <greg_burns@DONT_SPAM_ME_hotmail.com> wrote in message
news:eP**************@TK2MSFTNGP15.phx.gbl...
Using the Cache is probably a good idea, if you need the same dataset for
the "enitre project".

Reading a property of the hosting Page is useful for me simply because my
dataset is user specific and I didn't want to store it in session on the
server. My reason for that is probably flawed anyways. :^)

Greg

"Mark Goldin" <ma********@comcast.net> wrote in message
news:uU**************@TK2MSFTNGP09.phx.gbl...
I am not sure if that what I need.
All I want is to have that dataset accessible from the entire project.

"Kevin Spencer" <ks******@takempis.com> wrote in message
news:#s**************@TK2MSFTNGP15.phx.gbl...
Cache it in Application Cache, if you want it to be truly global, or

Session
State, if you only want it to be global by user.

--
HTH,
Kevin Spencer
.Net Developer
Microsoft MVP
Big things are made up
of lots of little things.

"Mark Goldin" <ma********@comcast.net> wrote in message
news:OJ**************@TK2MSFTNGP15.phx.gbl...
> I'd like to have a dataset that will be declared on a main ASPX page
> and
> visible in any custom or user control.
> Is there a way of doing that?
>
> Thanks
>
>



Nov 18 '05 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: James Morton | last post by:
I am writing a c# windows forms application. I read in an XML file to a dataset for read-only access (by the user and the application logic). This is not an MDI app but has LOTS of seperate...
15
by: Mark Goldin | last post by:
I have main aspx page with a number of user controls. How can I create a global property that will be visible in every user control? Thanks
8
by: Vishwanathan Raman | last post by:
Hi I have a declared a static DataSet object SOBJ in Global.asax.I also have a localy defined DataSet LSOBJ in Global.asax which I am storing in Application State.Is there any technical...
0
by: Rick Hein | last post by:
I've got a problem with an app I've been working on, the Caching object and events not firing correctly. In a nutshell: When I'm debugging, and I set a breakpoint in the removed item call back, the...
4
by: Mark Olbert | last post by:
I have several ASP.NET 1.1 websites where I centralized a read-only dataset (i.e., one which no web page ever changed) and its associated SqlDataAdapters. In 2.0 I noticed that the Global.asax...
4
by: kuhrty | last post by:
I am using a window form and trying to get a dataset used in the form globally but I am having an issue setting the property and setting it locally to the class. When I try to call the dataset...
8
by: Hans Greif | last post by:
Hallo, hello, i try to implement a global dataset - singleton based. On www.bakterienforum.de i found a singleton implementation: sealed class SingletonCounter { public int Counter = 0;
13
by: Charles A. Lackman | last post by:
Hello, Is there a way to make a dataset global to all my aspx 2.0 web forms? Thanks, Chuck
23
by: David Colliver | last post by:
Hi, using c#, 1.1 I know that we are not supposed to use global variables etc. in c# I am having a problem, but not sure how to resolve. I did have another post here, but may have over...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.