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

Redirecting from web page to local folder?

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
Jul 19 '05 #1
2 3795
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.
Jul 19 '05 #2
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 <ad******@devbuilder.org> wrote in message news:<3f*********************@news.frii.net>...
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.

Jul 19 '05 #3

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

Similar topics

1
by: Stu | last post by:
Hi All, I have an ASP.NET application to which I have implemented forms authentication to handle security. It is a relatively straight forward solution with all aspx pages residing in the root...
4
by: jjjooooohhnnn | last post by:
Greetings, I have encountered what appears to be a fairly common problem: RedirectFromLoginPage is not redirecting to RedirectUrl. I have tried all the advice that I could on the 'net, and...
0
by: jason | last post by:
I googled a lot, couldn't find a good solution. Any help is greatly appreciated. What I want to do is: Given a web page in a running IE browser , i want to save an image in this web page to...
0
by: Carl Gilbert | last post by:
Hi I have a web application that uses System.Web.Mail to send off an email once the user has populated some text boxes. The aspx pages loads up ok on local host so I uploaded it to my web space...
6
by: Dean Fields | last post by:
Hello, I am having some session problems wih an in-house (classic) asp application. My developers have not been able to figure it out. I am more of a systems admin type and much of this is over...
12
by: John Kotuby | last post by:
Hi all, Maybe this is a simple problem found in ASP.NET 2.0 course 101, but I must have missed it. When I create a page in Visual Web Developer and use URLs like "/images/picture.gif " or a link...
41
by: amygdala | last post by:
Hello all, I have posted a similar question in comp.lang.php in the past, but haven't had any response to it then. I kinda swept the problem under the rug since then. But I would really like to...
1
by: Andra | last post by:
Hello! I'm a beginner in asp sorry for bothering with silly questions, but i have this problem and i hoped u could help me: I have a control which leads from different pages to a page wich has the...
9
by: Jonathan Wood | last post by:
I've spent days trying to come up with a solution. I'd appreciate it if anyone can help. My site requires all users to log on. There are three different roles of users, and each user type will...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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...
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
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
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,...
0
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...

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.