Global Asax programming

A

Arne

How do I get gold of the server context when writing code in Global.asax?
I need to retrieve the name of the computer that I am running on.
 
J

Juan T. Llibre

re:
!> How do I get hold of the server context when writing code in Global.asax?

Don't retrieve the Machine's name in global.asax.

Retrieve it in the aspx page :
System.Environment.MachineName.ToString()




===============
 
A

Arne

I have a proper reason to do programming in Global.asax.
To retrieve it in a page does not achieve my goal.
You can retrieve yours in a page.
 
J

Juan T. Llibre

re:
!> I have a proper reason to do programming in Global.asax.
!> To retrieve it in a page does not achieve my goal.
!> You can retrieve yours in a page.

I was going to tell you how to do it, after finding out how with a little code testing which you
can now do on your own, but I'll let you keep banging your head until you get some manners.

Try to retrieve some manners from global.asax. You could use some.




===============
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,141
Messages
2,570,817
Members
47,365
Latest member
BurtonMeec

Latest Threads

Top