JimbobGilb
Posts: 28
|
Posted: 10/31/2013, 1:30 AM |
|
How can I modify a link so that c:\folder\document.xls becomes 192.168.0.99\folder\document.xls
The path is in our access database as c:\folder\document.xls and cannot modify this as it affect other things so require the website to dynamically change to path.
any help would be apreciated.
Thanks in advance,
|
|
|
eratech
Posts: 513
|
Posted: 11/03/2013, 5:24 PM |
|
Check the Before Show event for the link, and check the Link Reference to see examples of changing a link (there is a Help page called "Dynamically Modify a URL"
Then you can do a straight string replace of "C:" with "192.168.0.99"
Although it is probably worth it to see if you can put the IP address in a global constant (near top of Common.asp) so you can change it in one place when it changes in future.
cheers
Eric
_________________
CCS 3/4/5 ASP Classic, VB.NET, PHP
Melbourne, Victoria, Australia |
|
|
|