FileUpload and UpdatePanel: ScriptManager.RegisterPostBackControl works the second time

前端 未结 6 1820
你的背包
你的背包 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:38

    For me this solution worked:

    add Page.Form.Attributes.Add("enctype", "multipart/form-data");

    The enctype attribute is missing on the first postback.

    http://adamnoffie.blogspot.com/2007/10/file-upload-not-working-on-first.html

提交回复
热议问题