I have a datalist, named: dlstScannedDocuments.
The DataKeyField is FileName, and I am able to retrieve it by using:
dlstScannedDocuments.DataKeys(e.Item.ItemIndex)
The template for the datalist looks like this:
How can I retrieve what is in the LobReportYear cell for a record? For the life of me I cannot figure out how to do it anywhere. Any help very much appreciated, thank you.
The DataKeyField is FileName, and I am able to retrieve it by using:
dlstScannedDocuments.DataKeys(e.Item.ItemIndex)
The template for the datalist looks like this:
VB.NET:
<ItemTemplate>
<table border="0" cellspacing="0" width="100%" id="tblScannedDocuments" cellpadding="0">
<tr>
<td width="25%" align="left">
<asp:LinkButton ID="Linkbutton3" runat="server" Text="View">
</asp:LinkButton>
</td>
<td width="25%%" colspan="1" align="left">
<%#Container.DataItem("LobDocumentType")%>
</td>
<td width="25%" align="center" colspan="1">
<%#String.Format("{0:d}", Container.DataItem("LobDateReceived"))%>
</td>
<td width="25%" align="center" colspan="1">
<%#String.Format("{0:d}", Container.DataItem("LobScanDate"))%>
</td>
<td width="25%%" colspan="1" align="left" style="display:none">
<%#Container.DataItem("LobReportYear")%>
</td>
</tr>
</table>
</ItemTemplate>
How can I retrieve what is in the LobReportYear cell for a record? For the life of me I cannot figure out how to do it anywhere. Any help very much appreciated, thank you.