我正在使用<asp:FileUpload>和<asp:button>控件上载文件,但我希望在不使用回发的情况下上载文件。单击按钮后,我将执行以下代码。EventArgs e) string strFileName = Path.GetFileName(FileUpload1.FileName); //fileupload1 is the <aspimgupload is the <img ID on which I am showing the image after u
var formdata; var fileInput = document.getElementById('fileToUploadinproposal'); for (i = 0; i < fileInput.fi.length; i++) { formdata.append(fileInput.fi