473,394 Members | 1,746 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,394 software developers and data experts.

global vars in ASP.NET

Hi,
I’m desperate to have a solution for this problem. This is a system critical
order entry application and I simply need to have a bunch of global (public)
variables to store information before it gets written to the database. I have
tried public structures defined in a VB module just to latter learn that they
(the strucs) would be static and so available to all users in the network so
a order entered in one computer would be the same in all other computers in
the network …..NOT the effect one would be looking for….What can I do ?

Thanks

C.Fleury

Nov 19 '05 #1
4 1189
So, in fact, you don't want truly global variables. You want variables that
are global to all pages, but unique to each user, right?

Try Session.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
What You Seek Is What You Get.

"cFleury" <cF*****@discussions.microsoft.com> wrote in message
news:60**********************************@microsof t.com...
Hi,
I'm desperate to have a solution for this problem. This is a system
critical
order entry application and I simply need to have a bunch of global
(public)
variables to store information before it gets written to the database. I
have
tried public structures defined in a VB module just to latter learn that
they
(the strucs) would be static and so available to all users in the network
so
a order entered in one computer would be the same in all other computers
in
the network ...NOT the effect one would be looking for..What can I do ?

Thanks

C.Fleury

Nov 19 '05 #2
"cFleury" <cF*****@discussions.microsoft.com> wrote in message
news:60**********************************@microsof t.com...
I have tried public structures defined in a VB module just to latter learn
that they
(the strucs) would be static and so available to all users in the network


Funny that - you'd almost think they were global variables... :-)
Nov 19 '05 #3
Exactly....That's what I need...

Your name is familiar (apart from this group) !!! Have you done Clipper in
the past ?

Thanks
C.Fleury

"Kevin Spencer" wrote:
So, in fact, you don't want truly global variables. You want variables that
are global to all pages, but unique to each user, right?

Try Session.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
What You Seek Is What You Get.

"cFleury" <cF*****@discussions.microsoft.com> wrote in message
news:60**********************************@microsof t.com...
Hi,
I'm desperate to have a solution for this problem. This is a system
critical
order entry application and I simply need to have a bunch of global
(public)
variables to store information before it gets written to the database. I
have
tried public structures defined in a VB module just to latter learn that
they
(the strucs) would be static and so available to all users in the network
so
a order entered in one computer would be the same in all other computers
in
the network ...NOT the effect one would be looking for..What can I do ?

Thanks

C.Fleury


Nov 19 '05 #4
> Your name is familiar (apart from this group) !!! Have you done Clipper in
the past ?
Afraid not, C. My experience is fairly limited to Microsoft products and
development. I DID start out with a Borland C++ compiler, but that was a
decade ago!

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
What You Seek Is What You Get.

"cFleury" <cF*****@discussions.microsoft.com> wrote in message
news:4C**********************************@microsof t.com... Exactly....That's what I need...

Your name is familiar (apart from this group) !!! Have you done Clipper in
the past ?

Thanks
C.Fleury

"Kevin Spencer" wrote:
So, in fact, you don't want truly global variables. You want variables
that
are global to all pages, but unique to each user, right?

Try Session.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
What You Seek Is What You Get.

"cFleury" <cF*****@discussions.microsoft.com> wrote in message
news:60**********************************@microsof t.com...
> Hi,
> I'm desperate to have a solution for this problem. This is a system
> critical
> order entry application and I simply need to have a bunch of global
> (public)
> variables to store information before it gets written to the database.
> I
> have
> tried public structures defined in a VB module just to latter learn
> that
> they
> (the strucs) would be static and so available to all users in the
> network
> so
> a order entered in one computer would be the same in all other
> computers
> in
> the network ...NOT the effect one would be looking for..What can I do ?
>
> Thanks
>
> C.Fleury
>


Nov 19 '05 #5

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

Similar topics

14
by: lkrubner | last post by:
If I set a variable at the top of my code like this: $name = "Lawrence"; It is now a global variable. If, later on, in a function, I want to do this: function uppercaseName() { global...
13
by: David Rysdam | last post by:
Getting no answer yesterday, I've done some investigation and I obviously don't understand how python namespaces work. Here's a test program: #!/usr/bin/python b = 2 def sumWithGlobal(a):...
6
by: flamesrock | last post by:
ok, so to my knowledge, object oriented means splitting something into the simplest number of parts and going from there. But the question is- when is it enough? For example I have the following...
4
by: Kenny Ashton | last post by:
Hello gurus Can I ask you opions on the best compromise for storing Access Ado connection strings in a IIS4 standard ASP environment. For any method I use, there seems to be an article somewhere...
16
by: WaterBug | last post by:
When clicking on the following link from an email i.e - http://myserver/myapplication/myprogram.asp?urlvar1=some%20stuff&urlvar2=more%20stuff I get a server 500 error. With that same browser...
10
by: Kleenex | last post by:
Reason: I am working on an embedded project which has very limited memory (under 512 bytes, 60 or so of which is stack space), which translates into limited stack space. In order to save on stack...
9
by: CDMAPoster | last post by:
About a year ago there was a thread about the use of global variables in A97: http://groups.google.com/group/comp.databases.ms-access/browse_frm/thread/fedc837a5aeb6157 Best Practices by Kang...
1
by: Konstantinos Pachopoulos | last post by:
Hi, i had posted earlier for not being able to declare global vars. No i followed the suggestions and created a class, but still the vars do not seem to have a global scope. I have tried pretty...
4
by: pcaisse | last post by:
I'm having issues sharing global variables with Explorer. This problem probably has a simple answer (as with most newbie questions). The script.pl file: #!/usr/bin/perl -w use strict; use...
0
by: Gary Herron | last post by:
Jacob Davis wrote: Yuck, YUCK, YUCK! You are breaking *so* many good-programming-practices, I hardly know where to start. First off: A python global is not what you think. There are *no*...
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:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
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...

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.