ASP.NET FileUpload in UpdatePanel - still not working

后端 未结 4 2014
梦如初夏
梦如初夏 2020-11-30 12:39

Attempting to use a FileUpload or AsyncFileUpload control in an updatepanel on a NET 4.5/C# web application.

I\'ve tried using either standard Scriptmanager or ToolK

4条回答
  •  -上瘾入骨i
    2020-11-30 13:01

    File Upload will not work with a partial post back. It requires full page request. So add the below line in your page load.

    ScriptManager.GetCurrent(this).RegisterPostBackControl(this.YourControlID);
    

提交回复
热议问题