Global Asax programming

  • Thread starter Thread starter Arne
  • Start date Start date
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.
 
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()




Juan T. Llibre, asp.net MVP
¿ Estas probando VS 2010 y ASP.NET 4.0 ?
Regístrate (gratis) en los Foros de VS 2010 y ASP.NET 4.0, en español
http://asp.net.do/foros/forums/
=====================================================
 
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.
 
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.




Juan T. Llibre, asp.net MVP
¿ Estas probando VS 2010 y ASP.NET 4.0 ?
Regístrate (gratis) en los Foros de VS 2010 y ASP.NET 4.0, en español
http://asp.net.do/foros/forums/
=====================================================
 
Back
Top