Ask a Question related to ASP.NET Building Controls, Design and Development.
-
AVL #1
need help on application variables
Hi,
I need help on the usage of application variables...
Can I populate application variables through my console application and use
them
in my web application....
Are application variables specific to web solutions only..
can anyone provide more info on this?
AVL Guest
-
Problem with Application variables using Application.cfc
Hi guys, I'm using CFMX7 and with that the Application.cfc. I've defined the app variables using <cfset This.varname = "something"> I would like... -
application variables in a CFC
I have some application variables declared in my Application.cfm file, and I want to be able to use them in my CFC. However, I've noticed that if... -
DB Field name="application" and Application scope variables
Hi, There is DB Field application which overwrited ,as I see , Application scope variable Are there way to solve this problem without using... -
ASP Application Variables
I am using IIS 6.0 and am trying to use application variables to track uasge. They work fine as long as there is an active client but about 20... -
Global variables - application variables vs include file
What are the best methods for using global constants and variables? I've noticed that many people put all global constants in a file and include... -
Steve C. Orr [MVP, MCSD] #2
Re: need help on application variables
Application variables are specific to a particular web application.
A console application is not a web application so I don't think your
proposal is likely to work. Of course there is always a way. For example
the console application could post to a specific web page in the web
application that will set the application variable.
--
I hope this helps,
Steve C. Orr, MCSD, MVP
[url]http://SteveOrr.net[/url]
"AVL" <AVL@discussions.microsoft.com> wrote in message
news:151BD650-F5EC-475E-ACC7-D2E88EC6344C@microsoft.com...> Hi,
>
> I need help on the usage of application variables...
>
> Can I populate application variables through my console application and
> use
> them
> in my web application....
>
> Are application variables specific to web solutions only..
>
> can anyone provide more info on this?
Steve C. Orr [MVP, MCSD] Guest
-
Prashant #3
Re: need help on application variables
Application variables can be provided by creating a global module and
adding attributes as public.. can be able to access through out
application
Prashant Guest
-
CaffieneRush@gmail.com #4
Re: need help on application variables
Hi,
If you're talking about setting environment variables in you console
app and accessing them in your web app then I don't see why that is not
possible.
If I were to go that route, I'll load the variables back in the webapp
within Application_Start()
Something like:
Sub Application_Start
'Assuming the console program has set the environment vars MyVariable1
and
'MyVariable2
Application("MyVariable1") =
Environment.GetEnvironmentVariable("MyVariable1")
Application("MyVariable2") =
Environment.GetEnvironmentVariable("MyVariable2")
End Sub
Hope this is another good idea.
CaffieneRush@gmail.com Guest



Reply With Quote

