Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - How to repair links automatically
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

How to repair links automatically

 Post Reply Post Reply
Author
PrivateEye View Drop Down
Groupie
Groupie
Avatar

Joined: 21 March 2003
Location: United Kingdom
Status: Offline
Points: 168
Post Options Post Options   Thanks (0) Thanks(0)   Quote PrivateEye Quote  Post ReplyReply Direct Link To This Post Topic: How to repair links automatically
    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

Edited by PrivateEye
The Judgement Day
Back to Top
dpyers View Drop Down
Senior Member
Senior Member


Joined: 12 May 2003
Status: Offline
Points: 3937
Post Options Post Options   Thanks (0) Thanks(0)   Quote dpyers Quote  Post ReplyReply Direct Link To This Post 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.

 



Edited by dpyers

Lead me not into temptation... I know the short cut, follow me.
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.