Mega Code Archive

 
Categories / ASP.Net Tutorial / ASP Net Controls
 

Using the new Caption attribute (C#)

<%@ Page Language="C#" %> <html xmlns="http://www.w3.org/1999/xhtml" ><head id="Head1" runat="server">     <title>Table Server Control</title> </head> <body>     <form id="form1" runat="server">         <asp:Table ID="Table1" Runat="server"          Caption="<b>Table 1:</b> This is an example of a caption above a table."          BackColor="Gainsboro">             <asp:TableRow ID="Tablerow1" Runat=server>                 <asp:TableCell ID="Tablecell1" Runat="server">Lorem ipsum dolor sit                   amet, consectetuer adipiscing elit. Duis vel justo. Aliquam                   adipiscing. In mattis volutpat urna. Donec adipiscing, nisl eget                   dictum egestas, felis nulla ornare ligula, ut bibendum pede augue                   eu augue. Sed vel risus nec urna pharetra imperdiet. Aenean                   semper. Sed ullamcorper auctor sapien. Suspendisse luctus. Ut ac                   nibh. Nam lorem. Aliquam dictum aliquam purus.</asp:TableCell>             </asp:TableRow>         </asp:Table>     </form> </body> </html>