Download feature not working within update panel in asp.net

后端 未结 7 1712
孤城傲影
孤城傲影 2020-11-29 06:13

I have a Web User Control containing a FormView. The formview shows details of job seeker. I have provided a button for \"Download Resume\" link, so that admin/

7条回答
  •  孤独总比滥情好
    2020-11-29 07:10

    Please try the following steps:

    1.  

      
      
      
    2. (Code Behind) UploadFile()

      ScriptManager scriptManager = ScriptManager.GetCurrent(this.Page);
      scriptManager.RegisterPostBackControl(gv_Files);
      
    3. DownloadFile()

      DownloadFile() --> LinkButton download = row.FindControl("lnkDownload") as LinkButton;
      ScriptManager.GetCurrent(this).RegisterPostBackControl(download);
      

提交回复
热议问题