April 2021 1 179 Report

FileUpload Control of ASP.Net2 always shows HasFile=false. I dont know why?

Hello All,

I am using FileUpload which is in cell of table. I am selecting file from local drive but when I click on Submit Button it shows no file. That is HasFile=false always.

I have one Update Panel in my page but FileUpload Control is out side of UpdatePanel.

I am also want that Multiple Files and attach it from another form. Like yahoo file attachment process.

How can I do that.

Please help me.

Actualización:

Code is

==========

if (flUpload.HasFile)

{

flUploaded.SaveAs("~//UploadedFiles//"+flUpload.FileName)

}

Uploaded folder is in my web root folder so theri is persmission.

Please enter comments
Please enter your name.
Please enter the correct email address.
You must agree before submitting.

Answers & Comments


Helpful Social

Copyright © 2024 ANSWERS.MX - All rights reserved.