Wrox Programmer Forums
|
Classic ASP Basics For beginner programmers starting with "classic" ASP 3, pre-".NET." NOT for ASP.NET 1.0, 1.1, or 2.0
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old November 15th, 2004, 08:45 PM
Registered User
 
Join Date: Aug 2004
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default Href to Excel Document

This is such a stupid question, but its driving me nuts. I have an Excel spreadsheet on our web server that I want to link through via an HTML link. I've been using this format:

<A href="file://MyWebServerName/Path/ExcelDoc.xls">Test</A>

... and it works sporadically on our one intranet web server and not at all on our new one.

There's got to be an easy way to link to one, right?
Thanks for your help!

 
Old November 15th, 2004, 09:19 PM
Friend of Wrox
 
Join Date: Jan 2004
Posts: 1,870
Thanks: 12
Thanked 20 Times in 20 Posts
Send a message via AIM to mat41
Default

Change:
<A href="file://MyWebServerName/Path/ExcelDoc.xls">Test</A>
To:
<a href="Path/ExcelDoc.xls">Test</A>

BTW: If you wanted to use an absolute path get rid of the file:// replace this with http://

EG <A href="http://MyWebServerName/Path/ExcelDoc.xls">Test</A>

You may ask, should I use relative or absolute - this will explain the difference and when you should each of them:
http://www.communitymx.com/content/a....cfm?cid=230AD



Wind is your friend
Matt





Similar Threads
Thread Thread Starter Forum Replies Last Post
Chapter 8, href and HRef (p. 285) roman BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3 2 June 16th, 2008 10:40 AM
how to access xml document in Excel? nmannikar XML 5 March 21st, 2008 05:58 PM
document.location.href surendran Javascript 5 August 3rd, 2005 10:17 PM
How to use Ms-Excel document in java kumar_kumar Java GUI 6 February 8th, 2005 05:21 PM
document.lcoation.href is null or not an object IceXia Javascript How-To 2 November 24th, 2004 04:44 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.