Question for application path

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • John Paul Goods

    #1

    Question for application path

    Hi,

    I have a class can be use by either Web Application or
    Window Application. Inside of this class, I need to get
    the application root. I know I can use
    System.web.Http Context.Current .Request.Physic alApplicationP
    ath to get the Application Path for Web Application, But
    question is:
    1) How do I know what type of application(Web or
    Window)?
    2) How to get the Application Path for the window app?

    Thanks!

    John Paul
  • Shane

    #2
    Re: Question for application path

    In article <01b001c38f52$c 586ec70$a301280 a@phx.gbl>, hsinhsong@yahoo .com
    says...[color=blue]
    > Hi,
    >
    > I have a class can be use by either Web Application or
    > Window Application. Inside of this class, I need to get
    > the application root. I know I can use
    > System.web.Http Context.Current .Request.Physic alApplicationP
    > ath to get the Application Path for Web Application, But
    > question is:
    > 1) How do I know what type of application(Web or
    > Window)?
    > 2) How to get the Application Path for the window app?
    >
    > Thanks!
    >
    > John Paul
    >[/color]

    Shot in the dark.. could you use the AppDomain information?

    Comment

    Working...