Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP General > Redirecting from web page to local folder?

Reply
Thread Tools

Redirecting from web page to local folder?

 
 
Nicolae Fieraru
Guest
Posts: n/a
 
      08-24-2003
Hi All,
I do some web design on an XP system and I intend to make a navigation
system based on a browser interface.
I created a home page on my local IIS and I see the page in IE. What I would
like to do is to have a link which will open the location not in a browser,
but as a folder.

I can do that if I place a html file called "swap.htm" with this content:

<a href="file:///C:\Inetpub\wwwroot\MyWebs\Reference"> View as folder </a>

But I have to click myself first on swap.htm and then on the "View as
folder" link
I was trying to use an asp page called "swap.asp" and when I click on it, to
redirect me to file:///C:\Inetpub\wwwroot\MyWebs\_Reference
The content of "swap.asp" is
<%
response.redirect("file:///C:\Inetpub\wwwroot\MyWebs\_Reference")
%>

However, it gives me an error (the page cannot be displayed)
Any ideas if there is a workaround this?

Regards,
Nicolae


 
Reply With Quote
 
 
 
 
Andrew J Durstewitz
Guest
Posts: n/a
 
      08-25-2003
You cannot redirect users using the file:// string. Since final code is
processed client side it will attempt to redirect the user to that
folder locally.

I would setup directory browsing on the folder and redirect to it that
way.

Although that doesn't allow users to tranfere files back to the server
you can use FTP for that.

hth,
Andrew

* * * Sent via DevBuilder http://www.devbuilder.org * * *
Developer Resources for High End Developers.
 
Reply With Quote
 
 
 
 
Nicolae Fieraru
Guest
Posts: n/a
 
      09-03-2003
Thank you Andrew,

The code for personal use and it is meant only to run on my local
computer...
Because I modify very often some of the web pages I have in IIS, I
would like to be able to click on a link and to have their folder
open, so I can edit it with my editor program

Regards,
Nicolae


Andrew J Durstewitz <(E-Mail Removed)> wrote in message news:<3f499008$0$198$(E-Mail Removed)>...
> You cannot redirect users using the file:// string. Since final code is
> processed client side it will attempt to redirect the user to that
> folder locally.
>
> I would setup directory browsing on the folder and redirect to it that
> way.
>
> Although that doesn't allow users to tranfere files back to the server
> you can use FTP for that.
>
> hth,
> Andrew
>
> * * * Sent via DevBuilder http://www.devbuilder.org * * *
> Developer Resources for High End Developers.

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Redirecting a web page in a web farm environment robin9876@hotmail.com ASP .Net 0 03-10-2006 03:51 PM
Error when redirecting to an asp page from an aspx page Loui Mercieca ASP .Net 3 09-03-2005 04:31 PM
Redirecting to page page... digime HTML 2 02-10-2005 06:24 PM
Re: redirecting from .aspx page to .asp page Jeff Trotman ASP .Net 0 07-16-2003 04:25 AM
Re: redirecting from .aspx page to .asp page Steve C. Orr, MCSD ASP .Net 0 07-15-2003 12:18 AM



Advertisments