Quantcast
Channel: SharePoint 2010 - Development and Programming forum
Viewing all articles
Browse latest Browse all 11571

How to access attachment from gridview

$
0
0

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



Viewing all articles
Browse latest Browse all 11571

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>