日期:2014-05-17  浏览次数:20413 次

在linkbutton中onclick事件中通过点击linkbutton传当前 'sq|Id'到后台页面
<asp:ListView ID="ListView1" runat="server" DataKeyNames="Id" OnSelectedIndexChanging="ListView1_SelectedIndexChanging"
  OnItemCommand="ListView1_ItemCommand" >
  <EmptyDataTemplate>
  <table id="Table2" runat="server" style="background-color: #FFFFFF; border-collapse: collapse;
  border-color: #999999; border-style: none; border-width: 1px;">
  <tr>
  <td>
  未返回数据。
  </td>
  </tr>
  </table>
  </EmptyDataTemplate>
  <ItemTemplate>
  <tr style="background-color: #FFFBD6; color: #333333;">
  <td class="ziti">
  <asp:Label ID="employidLabel" runat="server" Text='<%# Eval("Id") %>' class="econtent" />
  </td>
  <td style="width: 200px;" class="ziti">
  <asp:Label ID="compidLabel" runat="server" Text='<%# Eval("sqId") %>' class="econtent"
  Style="width: 100px" />
  </td>
  <td class="ziti">
  <asp:Label ID="majorLabel" runat="server" Text='<%# Eval("isPc").ToString().Trim()=="False"?"不是":"是" %>'
  class="econtent"></asp:Label>
  </td>
  <td class="ziti">
  <asp:Label ID="Label1" runat="server" Text='<%# Eval("pcId") %>' class="econtent" />
  </td>
  <td class="ziti">
  <asp:Label ID="jobLabel" runat="server" Text='<%# Eval("carId") %>' class="econtent" />
  </td>
  <td class="ziti">
  <asp:Label ID="wagesLabel" runat="server" Text='<%# Eval("driverName") %>' class="econtent" />