codetoad.com
  ASP Shopping CartForum & BBS
  - all for $20 from CodeToad Plus!
  
  Home || ASP | ASP.Net | C++/C# | DHTML | HTML | Java | Javascript | Perl | VB | XML || CodeToad Plus! || Forums || RAM 
Search Site:
Search Forums:
  How to open files other then virtual folder..  wowrang at 20:01 on Friday, October 27, 2006
 

Hi ,

I created one aspx page ,in that i have one hyper link called (VIEW). when i click the view link , i am trying to open the file from my local hard drive c:\ Test-Docs\data , Problem is its not opening the file. its says access denied. I want this feature , pls help me to solve this issue. if its other then aspx file its works fine , i am getting this error only when i running form aspx.





1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
2 <script>
3 //<!--
4 function newwindow(strFileName)
5 {
6 window.open(strFileName,'mywindow','width=400,height=600,resizable=yes');
7 }
8 //-->
9 </script>
10
11 <table BORDER="2" ALIGN="left" CELLPADDING="5" BORDERCOLOR="#ff0000"
12 13 <td>test</td>
14 <td>test</td>
15 <td class="text">test</td>
16 <td class="text">10/26/2006 8:06:56 AM</td>
17 <td class="text">test_10_26_2006_08_04_06.html</td>
18 <td><a href="javascript:newwindow('file://C:\\Test-Docs\\data\\test_10_26_2006_08_04_06.html');">View</a></td>
19 <td><input type="submit" id="Download" style="font-style:veranda; font-size:8px; width: 65;" value="Download"
20
21 onClick="getDownloadFileName('test_10_26_2006_08_04_06.html')" ></td>
22 </tr>
23 </table>












CodeToad Experts

Can't find the answer?
Our Site experts are answering questions for free in the CodeToad forums








Recent Forum Threads
•  Re: Checking Multiple Forms on a Sngle Page
•  Address Book Problem
•  How to open files other then virtual folder..
•  please help incompatibility with IE 7
•  DIV Alignment When Text Size Is Changed
•  Why does my menu have specks?
•  moving mouse on the line graph
•  disconnected data
•  DHTML with Active X & codesigning


Recent Articles
ASP GetTempName
Decode and Encode UTF-8
ASP GetFile
ASP FolderExists
ASP FileExists
ASP OpenTextFile
ASP FilesystemObject
ASP CreateFolder
ASP CreateTextFile
Javascript Get Selected Text


© Copyright codetoad.com 2001-2006