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?
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
I was trying to use the asp:UpdatePanel. Removing that enabled it to work.
Richard
is working on a reply...