473,503 Members | 1,760 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 3569
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
370
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
4519
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
8374
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
1819
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
3416
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
4382
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
1449
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
3682
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
3372
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
1429
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
7199
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
7076
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
5576
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5005
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4670
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3162
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3151
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1507
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
732
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.