Hi,
I am having some problem, I declare few variable in a public module and use
them in the web application. But after that I found that the variable
declared in public variable = application("variable"), and it will be shared
by all user ... but I am not very sure about it, anyone know it ?
Thanks,
Tee 2 1711
Tee,
Any member in a module in VB.NET is shared by default. Here's a link to
the .NET Framework documentation that explains this: http://msdn.microsoft.com/library/de...us/vbcn7/html/
vaconsharedmembers.asp
Jim Cheshire [MSFT]
Developer Support
ASP.NET ja******@online.microsoft.com
This post is provided as-is with no warranties and confers no rights.
-------------------- From: "THY" <th*@streamyx.com> Subject: Public variable = application("variable") ? Date: Fri, 31 Oct 2003 05:40:54 +0800 Lines: 11 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.3790.1069 X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.3790.1069 Message-ID: <OV**************@TK2MSFTNGP10.phx.gbl> Newsgroups: microsoft.public.dotnet.framework.aspnet NNTP-Posting-Host: 219.95.13.211 Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTN GP10.phx.gbl Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.framework.aspnet:187661 X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
Hi,
I am having some problem, I declare few variable in a public module and use them in the web application. But after that I found that the variable declared in public variable = application("variable"), and it will be
sharedby all user ... but I am not very sure about it, anyone know it ?
Thanks, Tee
Sorry, I got the following error while visit the url.
Directory Listing Denied
This Virtual Directory does not allow contents to be listed.
and by the way, your shared by default is meant the variable shared by all
user ? or shared by all any other web forms ?
thanks,
Tee
"Jim Cheshire [MSFT]" <ja******@online.microsoft.com> wrote in message
news:Ur**************@cpmsftngxa06.phx.gbl... Tee,
Any member in a module in VB.NET is shared by default. Here's a link to the .NET Framework documentation that explains this:
http://msdn.microsoft.com/library/de...us/vbcn7/html/ vaconsharedmembers.asp
Jim Cheshire [MSFT] Developer Support ASP.NET ja******@online.microsoft.com
This post is provided as-is with no warranties and confers no rights.
--------------------From: "THY" <th*@streamyx.com> Subject: Public variable = application("variable") ? Date: Fri, 31 Oct 2003 05:40:54 +0800 Lines: 11 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.3790.1069 X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.3790.1069 Message-ID: <OV**************@TK2MSFTNGP10.phx.gbl> Newsgroups: microsoft.public.dotnet.framework.aspnet NNTP-Posting-Host: 219.95.13.211 Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTN GP10.phx.gbl Xref: cpmsftngxa06.phx.gbl
microsoft.public.dotnet.framework.aspnet:187661X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
Hi,
I am having some problem, I declare few variable in a public module and
usethem in the web application. But after that I found that the variable declared in public variable = application("variable"), and it will be sharedby all user ... but I am not very sure about it, anyone know it ?
Thanks, Tee This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Robin Eidissen |
last post by:
What I try to do is to iterate over two variables using template
metaprogramming. I've specialized it such that when it reaches the end
of a row ot starts on the next and when it reaches the last...
|
by: MLH |
last post by:
The following function declaration confuses me...
Public Function IsEMailAddress(ByVal sEmail As String, Optional ByRef
sReason As String) As Boolean
I tried pasting it and its code into an...
|
by: Barry Edmund Wright |
last post by:
Hi All,
I am using the code below to assign a form name to a form variable (vFrm).
Is there a way to assign the Openargs string directly to vFrm, i.e. vFrm =
Openargs ?
Private Sub...
|
by: Friday |
last post by:
Being an Old L.A.M.P guy, I beg you to please excuse my ignorance of
dot.net (and all things Windows, for that matter).
As part of an experiment (to learn enough ASP/VB.net to port a series
of ...
|
by: bm |
last post by:
I have few application variables storing shared important info in the
IIS5 server.
Now I want to cluster the web server so that users can still keeping
using the service if one server down, and...
|
by: VB Programmer |
last post by:
I wanted to access some properties of a panel control that is on a different
form. So, I went to the (Declarations) section of my main form (the form
with the panel) and changed the panel (called...
|
by: Pierre |
last post by:
Hello,
In an aspx page (mypage.aspx) from a web projet,
I would like to get the value of a variable of the projet that is declared
as public in a module.
The variable can be called from...
|
by: roamnet |
last post by:
hi
i created database file with .mdf extention ,sql server as a source
and use grid view to display data
there're no problem in data retrieve and display,but i want to edit it
or insert new...
|
by: John Kelsey |
last post by:
I am an old, longtime C programmer surprised and confused by an error
message I'm getting from my VS2005 compiler...
"Cannot pass 'Item' as a ref or out argument because it is a 'foreach...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
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...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
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: 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...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
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: 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,...
| |