Server name and app name

  • Thread starter Thread starter Leonardo Santos-Macias
  • Start date Start date
In the context of ASP.NET, Request.ServerVariables ("SERVER_NAME") will give
the server name and Request.ApplicationPath will give the app name (preceded
with / character)

HTH

Is there a way to get the servername and the web application name with vb
code?

i.e.

http://123.123.123.123/myapp (server: 123.123.123.123 and app my app)

http:///www.myapp.com (server myapp and app '')
 

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

Back
Top