IIS Application Name resolving

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
 
R

RJDev

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

Juan T. Llibre

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".
 
R

RJDev

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".
 

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

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,007
Latest member
obedient dusk

Latest Threads

Top