Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 3.5 > ASP.NET 3.5 Basics
Password Reminder
Register
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
ASP.NET 3.5 Basics If you are new to ASP or ASP.NET programming with version 3.5, this is the forum to begin asking questions. Please also see the Visual Web Developer 2008 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 3.5 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 October 25th, 2008, 05:45 PM
Authorized User
 
Join Date: Apr 2008
Location: , , .
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Default Access denied error when using FileUpload Control

Greetings All,

I'm using the standard FileUpload control and returning the result back to the server via the javascript submit() method. When I run it I get the following error:

htmlfile: Access is denied

I ran across this from MS: http://support.microsoft.com/kb/892442
and according to it I should be OK. Here's the code I'm using for getting the user's file:

    function ConfirmFile()
    {
        document.getElementById("hdn5").value=window.confi rm('The following file will be saved to the database. Press OK if this is correct.' + '\n' + '\n' + document.getElementById("FileUpload1").value);
        document.forms(0).submit();
    }
    function FileUpload()
    {
        document.getElementById("FileUpload1").click();
        if(document.getElementById("FileUpload1").value)
            {ConfirmFile();}

The FileUpload function is called first and the file is then confirmed by the ConfirmFile function. When the confirm box is displayed the filename with the complete path down to the root directory is shown. Unless I missed something per that MS article I should be OK.

Does anyone have any idea what I missed?

Thanks,

Chris


 


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
401.3 Access denied due to Access Control List cforsyth .NET Framework 2.0 8 May 28th, 2009 01:56 PM
ASP Access Denied Error hkccwong Classic ASP Basics 6 January 11th, 2008 04:12 AM
'Access is denied' error purvin Javascript 4 March 22nd, 2006 04:42 AM
please.....urgent....."access denied error while s Ramakrishna General .NET 2 October 12th, 2004 12:19 AM
Chapter 3. Access Denied Error kevinq BOOK: ASP.NET Website Programming Problem-Design-Solution 0 July 30th, 2003 02:10 AM



All times are GMT -4. The time now is 01:55 PM.


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