FileUpload1.HasFile is always returning false

前端 未结 3 1879
闹比i
闹比i 2021-01-14 05:34

I am uploading file using ASP.net File upload control. My FileUpload1.HasFile is always returning false.

if (FileUpload1.HasFile)
        {
            DBOpe         


        
3条回答
  •  余生分开走
    2021-01-14 06:03

    ASP.NET's "AJAX" thing doesn't support file uploads in UpdatePanels out of the box. Change that trigger into a PostBackTrigger (which causes a full page load) or use something else to upload the file.

提交回复
热议问题