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 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
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
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
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?
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
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 > >
<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 > >
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
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...
|
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
|
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...
|
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...
|
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...
|
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...
|
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;
|
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
|
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...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
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...
|
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
|
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...
|
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,...
|
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...
|
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...
|
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...
|
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,...
| |