Advertisement
Guest User

Untitled

a guest
Jun 14th, 2012
202
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
ASP 1.90 KB | None | 0 0
  1. <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm1.aspx.cs" Inherits="WebForms.WebForm1"  %>
  2.  
  3. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  4.  
  5. <html xmlns="http://www.w3.org/1999/xhtml">
  6. <head runat="server">
  7.     <title></title>
  8. </head>
  9. <body>
  10.     <form id="form1" runat="server">
  11.     <div>
  12.         <asp:LinqDataSource runat="server" ID="LinqDataSource"
  13.             OnSelecting="LinqDataSource_Selecting">
  14.         </asp:LinqDataSource>
  15.  
  16.         <asp:ListView runat="server" ID="lstTest" DataSourceID="LinqDataSource" EnableViewState="False">
  17.             <LayoutTemplate>
  18.  
  19.                 <table cellspacing="0" cellpadding="6" class="ListView">
  20.                     <thead>
  21.                         <tr>
  22.                             <td>Location</tdstyle>
  23.                             <td>&nbsp;</td>
  24.                         </tr>
  25.                     </thead>
  26.                     <tbody>
  27.                         <tr id="itemPlaceHolder" runat="server"></tr>
  28.                     </tbody>
  29.                 </table>
  30.  
  31.             </LayoutTemplate>
  32.             <EmptyDataTemplate>
  33.                
  34.             </EmptyDataTemplate>
  35.             <ItemTemplate>
  36.                 <tr>
  37.                     <td><%# Eval("ID") %></td>
  38.                     <td>
  39.                         <asp:CheckBox runat="server" ID="chkSelect" />
  40.                     </td>
  41.                 </tr>
  42.             </ItemTemplate>
  43.         </asp:ListView>
  44.  
  45.         <asp:DataPager ID="DataPager" PageSize="10" PagedControlID="lstTest" runat="server">
  46.                 <Fields>
  47.                     <asp:NextPreviousPagerField ButtonCssClass="StandardButton" ButtonType="Button" ShowFirstPageButton="True"
  48.                         ShowLastPageButton="True" />
  49.                 </Fields>
  50.         </asp:DataPager>
  51.  
  52.     </div>
  53.     </form>
  54. </body>
  55. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement