Plik Doc nie pobiera się z UserControl w asp.net

Mam kontrolę użytkownika, która zawiera siatkę z danymi kandydata. Istnieje nazwa kandydata na kolumny z przyciskiem łącza pola szablonu. Dołączyłem zdarzenie rowcommand, w którym pobieram plik programu Word. Mam kod pliku doc ​​do pobrania, który pobiera mój plik doc z prostej strony internetowej, ale ten kod nie działa w kontroli użytkownika. Czy ktoś może mi pomóc rozwiązać ten problem. udzielenie odpowiedzi o błędzie nie jest dostępne

  <asp:GridView ID="grdCandidate" runat="server" AutoGenerateColumns="false" 
       OnRowDataBound="grdCandidate_RowDataBound" 
       onrowcommand="grdCandidate_RowCommand">
          <Columns>
             <asp:BoundField DataField="Candidate ID" HeaderText="Candidate ID" />
                 <asp:TemplateField>
                      <HeaderTemplate>
                            Candidate Name
                      </HeaderTemplate>
                  <ItemTemplate>
                            <asp:LinkButton ID="lnkResume" CommandName="Download" CommandArgument='<%#Eval("Candidate ID") %>'
                                runat="server" Text='<%#Eval("Candidate Name") %>' ToolTip='<%# "Download Resume - " + Eval("Candidate Name") %>'></asp:LinkButton>
                  </ItemTemplate>
                </asp:TemplateField>
             </Columns>
 </asp:GridView>

protected void grdCandidate_RowCommand(object sender, GridViewCommandEventArgs e)
{
    try
    {
        if (e.CommandName == "Download")
        {
            byte[] Attachment = null;
            string Extension = string.Empty;
            string Resume = "Resume";
            ClsCandidateManager objCandidateManager = new ClsCandidateManager();
            ClsSecureManager objSecureManager = new ClsSecureManager();
            Attachment = objCandidateManager.GetCandidateAttachment(Convert.ToInt32(e.CommandArgument), out Extension);
            if (Attachment != null && Attachment.Length > 0)
            {
                try
                {
                    Response.Clear();
                    Response.Buffer = true;
                    Response.Charset = "";
                    if (Extension == ".pdf")
                    {
                        Response.ContentType = "application/pdf";
                    }
                    else
                    {
                        Response.ContentType = "application/vsd-msword";
                    }
                    Response.AddHeader("content-disposition", "attachment;filename=" + Resume + Extension);

                    Response.Cache.SetCacheability(HttpCacheability.NoCache);
                    Response.BinaryWrite(Attachment);                        
                    Response.Flush();
                    Response.End();
                }
                catch (Exception ex)
                {
                    string str = ex.Message + ex.InnerException;
                }
            }
            else
            {
                //ClientScript.RegisterStartupScript(typeof(Page), "SymbolError", "<script type='text/javascript'>alert('Resume is not Uploaded !');</script>");
            }
        }
    }
    catch (Exception ex)
    {
        string str = ex.Message + ex.InnerException;

    }

questionAnswers(1)

yourAnswerToTheQuestion