Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 1.0 and 1.1 > ASP.NET 1.0 and 1.1 Basics
Password Reminder
Register
| FAQ | Members List | Search | Today's Posts | Mark Forums Read
ASP.NET 1.0 and 1.1 Basics ASP.NET discussion for users new to coding in ASP.NET 1.0 or 1.1. NOT for the older "classic" ASP 3 or the newer ASP.NET 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.0 and 1.1 Basics section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
 
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old July 19th, 2006, 12:59 PM
Registered User
 
Join Date: Jan 2004
Location: , , .
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default opening direct file names client side

I imagine this is a security risk and is not possible but it can't hurt to ask.
I have 2 files located in C:\TestIn IE from the address bar I can type. File:///C:\Test\NewDoc.xls
and that file opens in Excel. Likewise I can type File:///C:\Test\NewDoc.txt and the other file will open in notepad. Is there a way that I can create an asp.net webpage with an <h ref> tag or meta tag redirect or even server side redirect or javascript document.location.href = "..." so the same thing will happen.

we have a shared directory with the same mapping letter, so if I save a link to a file at H:\test\test.txt then another person at another computer will be able to open that same file from our website link. Note: I'm storing these links in a database.
  #2 (permalink)  
Old August 14th, 2006, 01:44 PM
Registered User
 
Join Date: Jan 2004
Location: , , .
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Does no one out there have an answer to this?
  #3 (permalink)  
Old August 14th, 2006, 01:49 PM
Friend of Wrox
Points: 7,395, Level: 36
Points: 7,395, Level: 36 Points: 7,395, Level: 36 Points: 7,395, Level: 36
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Capital Federal, , Argentina.
Posts: 2,189
Thanks: 5
Thanked 59 Times in 57 Posts
Send a message via MSN to gbianchi
Default

can you just use an html link object???

HTH

Gonzalo
  #4 (permalink)  
Old August 14th, 2006, 03:22 PM
Wrox Author
Points: 13,255, Level: 49
Points: 13,255, Level: 49 Points: 13,255, Level: 49 Points: 13,255, Level: 49
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Oct 2005
Location: Ohio, USA
Posts: 4,104
Thanks: 1
Thanked 64 Times in 64 Posts
Send a message via AIM to dparsons
Default

Yes, this is quite possible. I would suggest setting up a virtual directory of some sort through IIS then in your href you could do something like this:

a href="http://mysite/virtualdirectory/somefile.xls" target = "new"

That will work to download the file, the user will just have to select open instead of Save if they wish to view it right then.

HTH

"The one language all programmers understand is profanity."
 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
opening client side folder browser in c# sauravnimesh .NET Framework 2.0 4 November 21st, 2008 07:20 AM
how to save a file on client side gauravawas ASP.NET 2.0 Professional 0 April 23rd, 2008 07:55 AM
file reading on client side vishalres Classic ASP Professional 0 April 9th, 2007 02:15 AM
File size on client side vincentvdm Classic ASP Basics 0 August 25th, 2003 02:19 PM



All times are GMT -4. The time now is 07:00 PM.


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