System.IO problems


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: System.IO problems

  1. #1
    Join Date
    Jun 2004
    Location
    Malta, Europe
    Posts
    50

    System.IO problems

    Hi, I am using the System.IO package to copy a user selectable file from a file selector (input type="file"). When I choose small files and click 'Attach' button which I made in the ASP.NET page it enters the on_click event of the Attach button and copies the file correctly. However, when I click on a bigger file, whose size is 90MB, and click 'Attach', the famous page 'This page cannot be displayed' comes up and the on_click event of the 'Attach' button does not even fire. I do not know what the cause is and I would appreciate any help greatly!

    Thanks in advance,
    Timothy

  2. #2
    Join Date
    Jun 2004
    Location
    Malta, Europe
    Posts
    50

    Solved!

    I solved the problem...mainly it was that I had put a runat="server" in the htmlinputfile. When I took that off, the files chosen were entering the Attach_click handler. The only thing that remained was to use some javascript to get the path from the client and I then used a hidden field which was populated with the filepath and name and referenced this in the Attach_click event.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center