473,395 Members | 1,972 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.

virtual web site

I have a web site that is configured as a virtual under IIS, in the folders
i also have sub folders that I need to search in from my web page. How can i
search the folders under the virtural web site directory without fully
defining the path?

its setup such as this;
c:\autoFinder
under this i have
c:\autoFnder\Cars
c:\autoFinder\Trucks

I need to perform a search under cars or trucks from my asp.net web page,
how can i do that without have c:\autoFinder\Cars, since the folder will not
be on teh C:\ drive on the web server?

Nov 19 '05 #1
2 1141

"Mike" <cs*********@optonline.net> wrote in message
news:uL**************@TK2MSFTNGP15.phx.gbl...
I have a web site that is configured as a virtual under IIS, in the folders
i also have sub folders that I need to search in from my web page. How can
i search the folders under the virtural web site directory without fully
defining the path?

its setup such as this;
c:\autoFinder
under this i have
c:\autoFnder\Cars
c:\autoFinder\Trucks

I need to perform a search under cars or trucks from my asp.net web page,
how can i do that without have c:\autoFinder\Cars, since the folder will
not be on teh C:\ drive on the web server?


You can use the virtual path with the '~' shortcut...and use Server.MapPath
to get the absolute path to the virtual path..

Dim absolutePath As String = Server.MapPath("~/Cars")

I believe the '~' tilde works with Server.MapPath...can't remember...it
should..

HTH...

Mythran

Nov 19 '05 #2
"Mike" <cs*********@optonline.net> wrote in
news:uL**************@TK2MSFTNGP15.phx.gbl:
I have a web site that is configured as a virtual under IIS, in the
folders i also have sub folders that I need to search in from my web
page. How can i search the folders under the virtural web site
directory without fully defining the path?

its setup such as this;
c:\autoFinder
under this i have
c:\autoFnder\Cars
c:\autoFinder\Trucks

I need to perform a search under cars or trucks from my asp.net web
page, how can i do that without have c:\autoFinder\Cars, since the
folder will not be on teh C:\ drive on the web server?

You'll need to use the IHTTPModule or IHTTPhandler to do something like
that.

--
Lucas Tam (RE********@rogers.com)
Please delete "REMOVE" from the e-mail address when replying.

Newmarket Volvo Sucks! http://newmarketvolvo.tripod.com
Nov 19 '05 #3

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

Similar topics

32
by: Adrian Herscu | last post by:
Hi all, In which circumstances it is appropriate to declare methods as non-virtual? Thanx, Adrian.
8
by: nick | last post by:
I have a problem and I've been using a cheezy work around and was wondering if anyone else out there has a better solution. The problem: Let's say I have a web application appA. Locally, I set...
8
by: Nate | last post by:
I am running on Window 2003. I have a website built in ASP.NET 2.0. I need to have a Virtual Directory running an application in 1.1. I have configured each in its own Application Pool. The 1.1...
2
by: tshad | last post by:
I have set up a Virtual Directory underneath my normal Web Site in IIS 6 for 2 of our sites. One of them works file. The other one is giving me an error:...
1
by: rogersmithiii | last post by:
We have a production web site - www.thesite.com - laid out as follows on IIS 6: d:\Inetpub\wwwroot\default.asp There are lots of subdirectories inside of WWWROOT including a cgi-bin directory...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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...

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.