File uploading in AJAX updatepanel without full postback

后端 未结 6 1741
無奈伤痛
無奈伤痛 2020-11-30 03:01

I have a update panel, in the update panel I have fileupload control and button control, On button click, I need the file that I have upload in the fileupload control in upd

6条回答
  •  孤城傲影
    2020-11-30 03:30

    I recommend the uploader widget from YUI. See http://developer.yahoo.com/yui/uploader/

    I think you could use it to accomplish your goal. Your javascript would need to fetch the file back down to the client from the server after it completed its upload. But the page would not refresh--the upload is through flash and a hidden iframe. The download to show the file's contents to the user would be via ajax.

    If the user does not "approve" the upload, then simply make another ajax call to the server to delete the file.

提交回复
热议问题