473,326 Members | 2,128 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,326 software developers and data experts.

Root path

Hi

This is probably the bozo question of the year, but I can't seem to find it
in the KB in VS for the life of me. I need to know how to get the full UNC
path to my web application (ie C:/Intet pub/wwwroot/MyApp/Start.aspx") and
also the root path ("/Start.aspx") as a string...

Can someone show me the light?

Thx
Steve
Nov 18 '05 #1
2 1393
Look into Server.MapPath() as well as a ton of things in the Request object.

Set a breakpoint and snoop around in Request. You will find what you need I
think.
"Steve Peterson" <fa******@fakemail.com> wrote in message
news:ed**************@TK2MSFTNGP09.phx.gbl...
Hi

This is probably the bozo question of the year, but I can't seem to find it in the KB in VS for the life of me. I need to know how to get the full UNC
path to my web application (ie C:/Intet pub/wwwroot/MyApp/Start.aspx") and
also the root path ("/Start.aspx") as a string...

Can someone show me the light?

Thx
Steve

Nov 18 '05 #2
Ahhhh! Server.MapPath.... Boy, I can't believe I missed that one... Oh well,
As we all know the KB that comes with VS (IMHP) leaves a bit to be desired
as far as being able to find stuff....

Thanks!
"neverstill" <sk************@yahoo.com> wrote in message
news:eq**************@TK2MSFTNGP10.phx.gbl...
Look into Server.MapPath() as well as a ton of things in the Request object.
Set a breakpoint and snoop around in Request. You will find what you need I think.
"Steve Peterson" <fa******@fakemail.com> wrote in message
news:ed**************@TK2MSFTNGP09.phx.gbl...
Hi

This is probably the bozo question of the year, but I can't seem to find

it
in the KB in VS for the life of me. I need to know how to get the full UNC path to my web application (ie C:/Intet pub/wwwroot/MyApp/Start.aspx") and also the root path ("/Start.aspx") as a string...

Can someone show me the light?

Thx
Steve


Nov 18 '05 #3

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

Similar topics

4
by: | last post by:
Is it possible to include my remote web server path eg: m:/html/root/site1 | m:/html/root/site2 etc ....in virtual includes.... Thus eliminating the need to create duplicate INC files in each...
5
by: Jonathan | last post by:
I am creating a CD-ROM based website template. Things work fine under Windows but when I try to run the site under Linux the path is messed up. Therefore my JavaScript functions misinterpret the...
1
by: William Stacey [MVP] | last post by:
I need a bullet proof way to combine a root and a relative path to form a FQ rooted path (similar to a VDir in IIS). Path.Combine alone will not do the job in all cases. I also need to be sure...
4
by: Win, Pats | last post by:
I have a snippet of HTML that I inject into a number of pages throughout my Web site at runtime. My problem is that I'm not getting the image to appear in all documents into which this snippet is...
2
by: Jordan Richard | last post by:
Put another way, is there any way I can tell ASP.NET to convert a path (imbedded in a string variable, "~/images/some_image.gif") to a root-relative path, that the client will understand, for the...
19
by: Steve Franks | last post by:
I am using VS.NET 2005 beta 2. When I run my project locally using the default ASP.NET Development Web Server it runs using a root address like this: http://localhost:11243/testsite/ However...
3
by: Nalaka | last post by:
Hi, I have an asp.net web application (www.myWebSite), and a subweb application (www.myWebSite/subSite). How do I set it so that, subweb application (www.myWebSite/subSite) be the root...
9
by: MR | last post by:
I get the following Exception "The data at the root level is invalid. Line 1, position 642" whenever I try to deserialize an incoming SOAP message. The incoming message is formed well and its...
4
by: Tee | last post by:
Hi, Can anyone tell me how to get the path of IIS root folder from coding? Eg: C:\Inetpub\wwwroot. I would like to detect it via coding as not everyone set it at the default folder. ...
15
by: Lars Eighner | last post by:
Aside from the deaths of a few extra electrons to spell out the whole root relative path, is there any down side? It seems to me that theoretically it shouldn't make any difference, and it would...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.