CodeCharge Studio
search Register Login  

Web Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> ASP

 Replace file path in a link

Print topic Send  topic

Author Message
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,

View profile  Send private message
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
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

MS Access to Web

Convert MS Access to Web.
Join thousands of Web developers who build Web applications with minimal coding.

CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.