Print Page | Close Window

How to repair links automatically

Printed From: Web Wiz Forums
Category: Web Wiz Web App Support Forums
Forum Name: Web Wiz Forums
Forum Description: Support forum for Web Wiz Forums application.
URL: https://forums.webwiz.net/forum_posts.asp?TID=3461
Printed Date: 01 April 2026 at 5:38pm
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: How to repair links automatically
Posted By: PrivateEye
Subject: How to repair links automatically
Date Posted: 11 June 2003 at 7:28pm
I want to use news, guestbook and forum application. Due to the directory structure of my website, I have to move the common.asp file of Forum out side the Forum folder and off-course I need to repair lots of links so that they refer to the new location of common.asp file. I am using Visual InterDev for the development. When I move the file (common.asp) by right clicking on the file in the project explorer window (cut+paste) a "Link Repair" window appear asking "Do you want to update the links in files that refer to common.asp" and I clik on "Yes" button and then I use the "Recalculate links" option but no link is repaired in the files. I want to know how can I repair all the links automatically in all other files referencing common.asp. Please help

-------------
The Judgement Day



Replies:
Posted By: dpyers
Date Posted: 12 June 2003 at 1:07am

I's been a while since I've used Vis Int Dev, but IIRC, the include statement for an asp file wasn't considered to be a link.

I have by Forum in a non-standard directory as well. Just selected all the asp and html files and did a find & replace, Took about half a minute.

I had have put path info and db connection strings for all of my apps into an include that I keep in the root directory. and added an include to reference it as the first include in the asp files. So now the beginning of the scripts looks something like...

<!-- #include virtual="/paths.inc" -->

response.write "<!-- #include virtual=&quot" & <% =strForumPath%> & "/common.asp -->&quot"

Off-hand, I forget if I had url encoded the special characters and quotation marks, or used the html variables - think it had to have been url encoding. I do recall that there was some issue about what was rendered when. But that was the basic principle.

 



-------------

Lead me not into temptation... I know the short cut, follow me.



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net