How to access attachment from gridview

Hi all,

I implemented one visual webpart in that webpart iam retrieving data from document library and displaying in gridview.i used below code to bind the attachment name in gridview.

<asp:TemplateField>
            <HeaderTemplate>
              <div style="text-align:left">DocumentName</div></HeaderTemplate>
            <ItemTemplate>
                <a href='/doclibname/<%# DataBinder.Eval(Container.DataItem,"Name")  %>' class="insidelinks">
                    <%# DataBinder.Eval(Container.DataItem, "Name")%>
              </ItemTemplate>
        </asp:TemplateField> Now i wanted to select on t item in grid view and i wanted to save this data to new document library.Iam facing issue while accessing the attachment from this grid view.How to access this and i wanted to save it to new document library.Please help.                                                                                                                                                         Regards,                                                                                                                                                                                       Praveen


July 25th, 2015 7:52am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics