Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Richard 146 posts 168 karma points
    Sep 07, 2011 @ 11:09
    Richard
    0

    ASP FileUpload Not uploading file

    I am creating a user control and using the .Net 2.0 control ASP:FileUpload, as described on the Wrox FileUpload Control to allow a member on the web site to upload a file. I have added enctype="multipart/form-data" to the form tag in the master template.

    If I disable JavaScript from my browser, the HasFile property of FileUpload returns true and the file is uploaded to the server. But with JavaScript enabled HasFile is false and no file is uploaded. Any ideas why?

    Thanks

    Richard

  • Richard 146 posts 168 karma points
    Sep 08, 2011 @ 11:40
    Richard
    0

    I was trying to use the asp:UpdatePanel. Removing that enabled it to work.

    Richard

Please Sign in or register to post replies

Write your reply to:

Draft