Advertisement
Guest User

Untitled

a guest
Jun 14th, 2012
135
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.02 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. <div style="display: none"><asp:CheckBox runat="server" ID="CheckBox1" Checked="True" /></div>
  40. <asp:CheckBox runat="server" ID="chkSelect" />
  41. </td>
  42. </tr>
  43. </ItemTemplate>
  44. </asp:ListView>
  45.  
  46. <asp:DataPager ID="DataPager" PageSize="10" PagedControlID="lstTest" runat="server">
  47. <Fields>
  48. <asp:NextPreviousPagerField ButtonCssClass="StandardButton" ButtonType="Button" ShowFirstPageButton="True"
  49. ShowLastPageButton="True" />
  50. </Fields>
  51. </asp:DataPager>
  52.  
  53. </div>
  54. </form>
  55. </body>
  56. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement