473,395 Members | 1,393 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

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.HttpContext.Current.Request.PhysicalApp licationP
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
Jul 21 '05 #1
2 3564
In article <01****************************@phx.gbl>, hs*******@yahoo.com
says...
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.HttpContext.Current.Request.PhysicalApp licationP
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


Shot in the dark.. could you use the AppDomain information?
Jul 21 '05 #2
In article <01****************************@phx.gbl>, hs*******@yahoo.com
says...
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.HttpContext.Current.Request.PhysicalApp licationP
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


Shot in the dark.. could you use the AppDomain information?
Jul 21 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: John Paul Goods | last post by:
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...
2
by: Simon Harvey | last post by:
Hi everyone, This is probably a pretty stupid question but does anyone know if its possible to use relative addressing when it comes to accessing an image of the file system? In particular, I...
2
by: Hazzard | last post by:
I just realized that the code I inherited is using all asp.net server controls (ie. webform controls) and when I try to update textboxes on the client side, I lose the new value of the textbox when...
8
by: Hardy Wang | last post by:
Hi: Is it possible for me to create/open web application from remote machine other than port 80? And create application directly under virtual web site instead of creating a virtual directory?...
10
by: jojobar | last post by:
Hello, I am trying to use vs.net 2005 to migrate a project originally in vs.net 2003. I started with creation of a "web site", and then created folders for each component of the site. I read...
4
by: I_AM_DON_AND_YOU? | last post by:
There is one more problem I am facing but didn't get the solution. In my Setup Program I am not been able to create 2 things (when the program is intalled on the client machine ) : (1) create...
24
by: Tiraman | last post by:
Hi, I Build my own dll with my own namespace name and i would like to put it in one place but for the project bin folder so all of the projects will be able to use it . i tried to put the dll...
10
by: Rider | last post by:
Hi, simple(?) question about asp.net configuration.. I've installed ASP.NET 2.0 QuickStart Sample successfully. But, When I'm first start application the follow message shown. ========= Server...
8
by: Ben R. | last post by:
Hi all, This is a multipart question. I’ve got an asp.net site that contains an access database. Previously, I would debug by making changes and uploading to my host. Now, I’d like to be...
11
by: A.M-SG | last post by:
Hi, I understand that be default VS2005 uses the ASP.NET development server to run and test ASP.NET applications. Is it possible that we use IIS for ASP.NET application debugging in new IDE...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.