ninel
Active member
I have a datagrid that is populated from a dataset.
The dataset contains TableId, EmployeeId, LoginTime, LogoutTime.
HTML Code:
I need the EmployeeId displayed, but the itmPunchTimeId behind it. This way when I redirect to another page I pass the itmPunchTimeId and not the EmployeeId.
I need to use itmPunchTimeId because EmployeeId is not unique in the table.
Thanks,
Ninel
The dataset contains TableId, EmployeeId, LoginTime, LogoutTime.
HTML Code:
VB.NET:
[left]<form id="Form1" method="post" runat="server"> <asp:datagrid id="grdResults" style="Z-INDEX: 116; LEFT: 56px; POSITION: absolute; TOP: 568px" runat="server" Width="900px" Font-Names="Tahoma" Height="50px" PageSize="1" CellPadding="1" AutoGenerateColumns="False" BorderColor="Silver" BorderStyle="Solid" CellSpacing="1" HorizontalAlign="Center" Font-Size="Smaller"> <Columns> <asp:BoundColumn DataField="itmPunchtimeid" HeaderText="ID"></asp:BoundColumn> <asp:BoundColumn DataField="EmployeeId" HeaderText="Last Name"></asp:BoundColumn> <asp:BoundColumn DataField="LoginTime" HeaderText="Start Time"></asp:BoundColumn> <asp:BoundColumn DataField="LogoutTime" HeaderText="End Time"></asp:BoundColumn> </Columns> </asp:datagrid> </form> [/left]
I need the EmployeeId displayed, but the itmPunchTimeId behind it. This way when I redirect to another page I pass the itmPunchTimeId and not the EmployeeId.
I need to use itmPunchTimeId because EmployeeId is not unique in the table.
Thanks,
Ninel