IIS Application Name resolving

  • Thread starter Thread starter RJDev
  • Start date Start date
R

RJDev

Hi,
Is there anyone who can help me in resolving the Application Name of my IIS
Aaplication.
I want to check the application name to see what configuration i need to use
because multiple virtual or root Web domains are using the same app env.

Regards,
Rene
 
Juan,
Thnx. I tried this but it will return my Virtual Web path. And not the
Application name itself.
Regards,
Rene
 
RJ,

Your virtual path *is* your ASP.NET application's name.

If you just want the letters in the name ( without the slash ), use :

Request.ApplicationPath.Substring(1, Request.ApplicationPath.Length-1)

That, instead of returning "/appname", will return "appname".



Juan T. Llibre
ASP.NET.FAQ : http://asp.net.do/faq/
ASPNETFAQ.COM : http://www.aspnetfaq.com/
Foros de ASP.NET en Español : http://asp.net.do/foros/
======================================
 
Juan,
I am going to try this.
Thnx.

Juan T. Llibre said:
RJ,

Your virtual path *is* your ASP.NET application's name.

If you just want the letters in the name ( without the slash ), use :

Request.ApplicationPath.Substring(1, Request.ApplicationPath.Length-1)

That, instead of returning "/appname", will return "appname".



Juan T. Llibre
ASP.NET.FAQ : http://asp.net.do/faq/
ASPNETFAQ.COM : http://www.aspnetfaq.com/
Foros de ASP.NET en Español : http://asp.net.do/foros/
======================================
 

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