virtual web site

M

Mike

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?
 
M

Mythran

Mike said:
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
 
L

Lucas Tam

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Members online

No members online now.

Forum statistics

Threads
474,431
Messages
2,571,677
Members
48,796
Latest member
Greg L.

Latest Threads

Top