FileUpload Doesn't Work When Nested In UpdatePanel? C#

前端 未结 3 541
予麋鹿
予麋鹿 2020-12-10 02:46
 
                
                        

        
3条回答
  •  春和景丽
    2020-12-10 02:46

    File Upload will not work with a partial post back. So just add this line at your page load

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

    Or use PostBackTrigger.

    
                
    
    

    Or You need special AsyncFileUpload control as defined in AjaxControl Toolkit.

    
    

    You can check here.

提交回复
热议问题