Click here to Skip to main content
15,887,214 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi ,

In my datasource I have this property as well
C#
public List<MarketingUpdateAttachmentBO> Attachments { get; set; }



Now in gidview , I am trying to do something like this

<td colspan="4">
                                   <%# Eval("Attachments.Name") %>
                               </td>


but this is giving me runtime error.

Please suggest how to achive this type of scnerio in gridviw
Posted
Comments
F-ES Sitecore 26-Nov-15 4:19am    
<td colspan="4">
Attachments
</td>
Torakami 26-Nov-15 5:55am    
??
F-ES Sitecore 26-Nov-15 6:02am    
You know it is called Attachments, no need to use any code, just hard-code it.

1 solution

try below code

ASP.NET
<%#:Attachments.Name %>


as i didn't experiment it so not sure.
 
Share this answer
 
Comments
Torakami 26-Nov-15 5:55am    
This is not working ..

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900