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("va riable"), and it will be shared
by all user ... but I am not very sure about it, anyone know it ?
Thanks,
Tee 2 1721
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/
vaconsharedmemb ers.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.c om> Subject: Public variable = application("va riable") ? 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.publi c.dotnet.framew ork.aspnet NNTP-Posting-Host: 219.95.13.211 Path: cpmsftngxa06.ph x.gbl!TK2MSFTNG P08.phx.gbl!TK2 MSFTNGP10.phx.g bl Xref: cpmsftngxa06.ph x.gbl microsoft.publi c.dotnet.framew ork.aspnet:1876 61 X-Tomcat-NG: microsoft.publi c.dotnet.framew ork.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("va riable"), 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******@onlin e.microsoft.com > wrote in message
news:Ur******** ******@cpmsftng xa06.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/ vaconsharedmemb ers.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.c om> Subject: Public variable = application("va riable") ? 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.publi c.dotnet.framew ork.aspnet NNTP-Posting-Host: 219.95.13.211 Path: cpmsftngxa06.ph x.gbl!TK2MSFTNG P08.phx.gbl!TK2 MSFTNGP10.phx.g bl Xref: cpmsftngxa06.ph x.gbl
microsoft.publi c.dotnet.framew ork.aspnet:1876 61X-Tomcat-NG: microsoft.publi c.dotnet.framew ork.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("va riable"), 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 row it stops..
At least that's what I thought I did, but VC71 says "warning C4717:
'LOOP<0,1>::DO' : recursive on all control paths, function will cause
runtime stack overflow".
What's wrong?
Here's the code:
template<int M, int N>
|
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 Access 2.0 module. I was
unsuccessful. I had to remove the following...
"Public"
"Optional ByRef"
"As Boolean"
|
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 Form_Load()
Public vFrm As Form
If Openargs = "subfrmProjects" then
|
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 existing PHP scripts of mine to work on IIS), I have created the
following simple function to compare a Website visitor's IP address
against a varabe-array. The experiment invovleas a common scenario --
banning a Website visitor by IP Address:
...
|
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 the application variable is
still keeping.
How can I do so?
| |
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 "panKnob") from "Friend
WithEvents" to "Public Shared WithEvents" so that I could access it from
another class (i.e. frmMain.panKnob.Visible=True")
I get this build error:
"The variable 'panKnob' is either undeclared or was never assigned."
...
|
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 anywhere in the code behind page and in the
class files, but when I try to call it from an aspx page, it raises an
error.
<%=myvar%> in mypage.aspx raise an error : the name "myvar" is not declared.
|
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 records
there is an error "Incorrect syntax near '-'.
Must declare the scalar variable "@UserName".
I worked out in design view,code is automatically generated.Iam not
able fix the error.
Iam working with Visual Web Developer-2005 Express Edition
|
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
iteration variable'" is the error message I'm getting for code that I think
should work. I'm sure that there is some sublety I'm missing... maybe with
the use of a reference, or foreach, or template class. Can someone maybe
explain it with small words...
|
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
| |
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |