Ramco Ramco

Ramco Ramco

  • 442
  • 3.4k
  • 528.6k

Foreign Datatable Field

Aug 31 2022 8:23 AM

Hi

  I want to display Department Name from the Master Table. I have set Foreign Key Relationship . Is it possible

<asp:Repeater ID="rptData" runat="server">
    <ItemTemplate>
        <tr>
            <td>
                <asp:HiddenField ID="hdfTrainingID" runat="server" Value='<%# Eval("TrainingID") %>' />
                <asp:Literal ID="ltrlNum" Text="<%# Convert.ToString(Container.ItemIndex + 1) %>" runat="server"></asp:Literal></td>
            <td>
                <%--<asp:Literal ID="ltrlActionResponse" runat="server" Text='<%# Eval("DeptId") %>'></asp:Literal></td>--%>
            <td>
                <asp:Literal ID="ltrlStatus" runat="server" Text='<%# Eval("TrainingStatus") %>'></asp:Literal></td>
        </tr>
    </ItemTemplate>
</asp:Repeater>

 


Answers (1)