FileUpload and UpdatePanel: ScriptManager.RegisterPostBackControl works the second time

前端 未结 6 1822
你的背包
你的背包 2020-12-16 23:19

I\'m developing an ASP.NET application with C# and Visual Studio 2008 SP1. I\'m using WebForms.

I have an ASPX page with two UpdatePanels, one on the left that holds

6条回答
  •  我在风中等你
    2020-12-16 23:25

    Fill Upload requires a full post, and if you use a Update Panel, it does a partial post back. So, FileUpload by itself will not work. You will have to handle it differently by calling the RegisterPostBackControl.

    See this link for details --> http://geekswithblogs.net/mmintoff/archive/2009/04/01/fileupload-within-updatepanel.aspx

提交回复
热议问题