Wrox Programmer Forums
BOOK: Professional ASP.NET 2.0 and Special Edition; ISBN: 978-0-7645-7610-2; ISBN: 978-0-470-04178-9
This is the forum to discuss the Wrox book Professional ASP.NET 2.0 Special Edition by Bill Evjen, Scott Hanselman, Devin Rader, Farhan Muhammad, Srinivasa Sivakumar; ISBN: 9780470041789
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Professional ASP.NET 2.0 and Special Edition; ISBN: 978-0-7645-7610-2; ISBN: 978-0-470-04178-9 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 July 25th, 2007, 12:18 AM
Friend of Wrox
Join Date: Oct 2005
Posts: 124
Thanks: 0
Thanked 1 Time in 1 Post
Default How to change file path to http url

I have a folder of Word doc files under my Web-server wwwroot folder. I have coded a snippet to automatically transfer the file path (C:\Inetpub\wwwroot\) to a ListBox. How can I modify my snippet, so that the ListBox will show the http:// links, instead of the file path.

I know I can use Format menu to change the label to hyperlink one by one, manually. For this aspx page, the hyperlinks will be created automatically, when the file path in the server folder is changed to http url of the LIstBox. How to code this aspx page?

C. Jeffrey Wang

Similar Threads
Thread Thread Starter Forum Replies Last Post
DTS ActiveX - Download file from an url(http://..) maruthiraja SQL Server DTS 0 April 9th, 2008 12:04 PM
Error: File path and URL http map differently cJeffreywang ASP.NET 1.0 and 1.1 Basics 4 March 27th, 2007 08:03 PM
Redirect URL to File path han_nomad C# 12 February 2nd, 2007 06:26 AM
file path does not correspond to url rnelson330 .NET Framework 1.x 1 May 27th, 2006 09:42 AM
How to change temporary file creation path shilpa_net2004 General .NET 0 December 14th, 2005 02:53 AM

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