Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Building Controls > need help on application variables

Reply
Thread Tools

need help on application variables

 
 
AVL
Guest
Posts: n/a
 
      03-15-2006
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?
 
Reply With Quote
 
 
 
 
Steve C. Orr [MVP, MCSD]
Guest
Posts: n/a
 
      03-15-2006
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
http://SteveOrr.net


"AVL" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> 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?



 
Reply With Quote
 
 
 
 
Prashant
Guest
Posts: n/a
 
      03-16-2006
Application variables can be provided by creating a global module and
adding attributes as public.. can be able to access through out
application

 
Reply With Quote
 
CaffieneRush@gmail.com
Guest
Posts: n/a
 
      03-20-2006
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.

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Put variables into member variables or function variables? tjumail@gmail.com C++ 9 03-23-2008 04:03 PM
need help on application variables =?Utf-8?B?QVZM?= ASP .Net 1 03-15-2006 12:29 PM
Re: Class public shared Variables vs. Application Variables in ASP.NET avnrao ASP .Net 0 05-07-2004 05:28 AM
Global Variables? Multi-Application Variables? Tony Archer ASP General 5 11-25-2003 10:34 PM
Global variables - application variables vs include file mark4asp ASP General 1 09-03-2003 01:30 PM



Advertisments