I created a table that has delete and details links.  When you click
the details link, a div is displayed with the deatails of each
record.  The code reads as follows:

<div id="divEdit" class="popupWindow" Runat="server">
    <asp:FormView
        DataKeyNames="EmployeeId"
        id="frmEdit"
        DataSourceId="salaryBenefitsSrc"
        runat="server">
    <ItemTemplate>
     <div><B>Name: </b><%# Eval("Full Name") %></div>
     <div><B>Title: </b><%# Eval("Title") %></div>
     <div><B>Salary: </b><%# Eval("Salary") %></div>
     <div><B>Health Care: </b><%# Eval("Health Care") %></div>
    </ItemTemplate>
    </asp:FormView>
    <asp:LinkButton
    id="lnkClose"
    Text="Close"
    OnClick="lnkClose_Click"
    Runat="server"/>|
        <asp:LinkButton
    id="lnkEdit"
    Text="Edit"
    CommandName=""
    Runat="server"/>
    </div>

The code works fine w/1 exception, in displays the details of the
first record for all of the records.  What property do I need to set
so that the data values will correspond to the correct record?  Thanks

Jon

Reply via email to