Table Footer Row : Table « Asp Control « ASP.Net

ASP.Net
1. ADO.net Database
2. Ajax
3. Asp Control
4. Collections
5. Components
6. Data Binding
7. Development
8. File Directory
9. HTML Control
10. Language Basics
11. Login Security
12. Mobile Control
13. Network
14. Page
15. Request
16. Response
17. Server
18. Session Cookie
19. Sitemap
20. Theme Style
21. User Control and Master Page
22. Validation by Control
23. Validation by Function
24. WebPart
25. WPF
26. XML
Java
Java Tutorial
Java Source Code / Java Documentation
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
ASP.Net » Asp Control » Table 
Table Footer Row


<%@ Page Language="C#"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>Accessible Table Example</title>

    <style type="text/css">
      table border-collapse: collapse; width: 30em; margin-top: 1em;}
      caption font-size: 1.1 em; font-weight: bold; margin: 1em; }
      th, td padding: 0.1em 1em; }
      th text-align: left; font-weight: bold; background-color: #FFFF80; 
           border-top: 3px solid #a5a5a5; border-bottom: 3px solid #a5a5a5;
           border-right: 1px solid #cccccc; border-left: 1px solid #cccccc;}
      td border: 1px solid #cccccc; }
      tfoot background-color: #FFFFC0; border-top: 2px solid #a5a5a5; font-style: italic;}
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <div id="container">
    <h2>Accessible Table Example</h2>
<asp:Table id="tabMarkup" runat="server" 
     Caption="Timing Results for Running Test"
     CaptionAlign="Top">
   <asp:TableHeaderRow >
      <asp:TableHeaderCell Text="Name" ID="headName" />
      <asp:TableHeaderCell Text="First Trial" ID="headFirst" />
      <asp:TableHeaderCell Text="Second Trial" ID="headSecond" />
   </asp:TableHeaderRow>
   <asp:TableRow>
      <asp:TableCell Text="Fred" AssociatedHeaderCellID="headName" />
      <asp:TableCell Text="10.5" AssociatedHeaderCellID="headFirst" />
      <asp:TableCell Text="36.5" AssociatedHeaderCellID="headSecond" />
   </asp:TableRow>
   <asp:TableRow>
       <asp:TableCell Text="Sue" AssociatedHeaderCellID="headName" />
      <asp:TableCell Text="45.3" AssociatedHeaderCellID="headFirst" />
      <asp:TableCell Text="16.5" AssociatedHeaderCellID="headSecond" />
   </asp:TableRow>
   <asp:TableFooterRow TableSection="TableFooter">
       <asp:TableCell Text="Average" AssociatedHeaderCellID="headName" />
      <asp:TableCell Text="27.9" AssociatedHeaderCellID="headFirst" />
      <asp:TableCell Text="10.0" AssociatedHeaderCellID="headSecond" />
   </asp:TableFooterRow>        
</asp:Table>
    </div>
    </form>
</body>
</html>

 
Related examples in the same category
1. Add row to asp:table
2. asp:table with static data
3. Add asp:tablecell
4. Layout controls in an asp:Table
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.