Table control in asp.net
For Example: Write a program to demonstrate the use Table Control.
<html >
<head runat="server"><title>Aryan Computers(Table Control) </title></head>
<body>
<form id="form1" runat="server"> <div>
<br />
<asp:Label ID="Label1" runat="server" Font-Bold="True" Font-Size="X-Large"
Text="BCA-III (Sem-VI) List "></asp:Label>
<br />
<br />
<asp:Table ID="Table2" runat="Server" CellPadding="2" CellSpacing="1"
BorderColor="Silver" Caption="Student Details" BorderWidth="1px"
BorderStyle="Solid" GridLines="Both" Height="23px" Width="219px">
<asp:TableRow ID="TableRow2" runat="Server" BorderWidth="1">
<asp:TableCell ID="TableCell4" runat="Server" BorderWidth="1">
Roll NO
</asp:TableCell>
<asp:TableCell ID="TableCell5" runat="Server">
Name of Student
</asp:TableCell>
</asp:TableRow>
<asp:TableRow ID="TableRow3" runat="Server">
<asp:TableCell ID="TableCell6" runat="Server">
21
</asp:TableCell>
<asp:TableCell ID="TableCell7" runat="Server">
Ramakant Jagtap
</asp:TableCell>
</asp:TableRow>
</asp:Table>
</div>
</form>
</body>
</html>
Output:

Comments
Post a Comment