<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="ru">
		<id>http://nfex.ru/index.php?action=history&amp;feed=atom&amp;title=ASP.Net%2FHTML_Control%2FTable</id>
		<title>ASP.Net/HTML Control/Table - История изменений</title>
		<link rel="self" type="application/atom+xml" href="http://nfex.ru/index.php?action=history&amp;feed=atom&amp;title=ASP.Net%2FHTML_Control%2FTable"/>
		<link rel="alternate" type="text/html" href="http://nfex.ru/index.php?title=ASP.Net/HTML_Control/Table&amp;action=history"/>
		<updated>2026-04-29T15:01:51Z</updated>
		<subtitle>История изменений этой страницы в вики</subtitle>
		<generator>MediaWiki 1.30.0</generator>

	<entry>
		<id>http://nfex.ru/index.php?title=ASP.Net/HTML_Control/Table&amp;diff=2381&amp;oldid=prev</id>
		<title> в 15:30, 26 мая 2010</title>
		<link rel="alternate" type="text/html" href="http://nfex.ru/index.php?title=ASP.Net/HTML_Control/Table&amp;diff=2381&amp;oldid=prev"/>
				<updated>2010-05-26T15:30:47Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr style=&quot;vertical-align: top;&quot; lang=&quot;ru&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Предыдущая&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Версия 15:30, 26 мая 2010&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; style=&quot;text-align: center;&quot; lang=&quot;ru&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(нет различий)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
			</entry>

	<entry>
		<id>http://nfex.ru/index.php?title=ASP.Net/HTML_Control/Table&amp;diff=2382&amp;oldid=prev</id>
		<title>Admin: 1 версия</title>
		<link rel="alternate" type="text/html" href="http://nfex.ru/index.php?title=ASP.Net/HTML_Control/Table&amp;diff=2382&amp;oldid=prev"/>
				<updated>2010-05-26T11:53:48Z</updated>
		
		<summary type="html">&lt;p&gt;1 версия&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Новая страница&lt;/b&gt;&lt;/p&gt;&lt;div&gt;==Hide a table (VB.net)==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- start source code --&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
    &amp;lt;source lang=&amp;quot;csharp&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;%@ Page Language=VB Debug=true %&amp;gt;&lt;br /&gt;
&amp;lt;script runat=server&amp;gt;&lt;br /&gt;
Sub Page_Load(ByVal Sender as Object, ByVal E as EventArgs)&lt;br /&gt;
    Dim MyRow as new HTMLTableRow&lt;br /&gt;
    Dim MyCell as new HTMLTableCell&lt;br /&gt;
    Dim i as Integer&lt;br /&gt;
    Dim j as Integer&lt;br /&gt;
    Table2.BGColor=&amp;quot;Ivory&amp;quot;&lt;br /&gt;
    Table2.Border=2&lt;br /&gt;
    Table2.BorderColor=&amp;quot;LawnGreen&amp;quot;&lt;br /&gt;
    Table2.CellPadding=4&lt;br /&gt;
    Table2.CellSpacing=3&lt;br /&gt;
    Table2.Align=&amp;quot;Center&amp;quot;&lt;br /&gt;
    MyCell.InnerText = &amp;quot;Column 1&amp;quot;&lt;br /&gt;
    MyRow.Cells.Add(MyCell)&lt;br /&gt;
    MyCell = New HTMLTableCell&lt;br /&gt;
    MyCell.InnerText = &amp;quot;Column 2&amp;quot;&lt;br /&gt;
    MyRow.Cells.Add(MyCell)&lt;br /&gt;
    Table2.Rows.Add(MyRow)&lt;br /&gt;
    For i = 2 to 6&lt;br /&gt;
        MyRow = New HTMLTableRow&lt;br /&gt;
        For j = 1 to 2&lt;br /&gt;
            MyCell = New HTMLTableCell&lt;br /&gt;
            MyCell.InnerText = &amp;quot;Cell &amp;quot; &amp;amp; i &amp;amp; &amp;quot;, &amp;quot; &amp;amp; j&lt;br /&gt;
            MyRow.Cells.Add(MyCell)&lt;br /&gt;
        Next&lt;br /&gt;
        Table2.Rows.Add(MyRow)&lt;br /&gt;
    Next    &lt;br /&gt;
End Sub&lt;br /&gt;
Sub Anchor2_Click(Source As Object, E as EventArgs)&lt;br /&gt;
    Table1.Rows.Clear&lt;br /&gt;
    Anchor2.Visible = False&lt;br /&gt;
End Sub&lt;br /&gt;
&amp;lt;/SCRIPT&amp;gt;&lt;br /&gt;
&amp;lt;HTML&amp;gt;&lt;br /&gt;
&amp;lt;HEAD&amp;gt;&lt;br /&gt;
&amp;lt;TITLE&amp;gt;Table Sample Page&amp;lt;/TITLE&amp;gt;&lt;br /&gt;
&amp;lt;/HEAD&amp;gt;&lt;br /&gt;
&amp;lt;BODY&amp;gt;&lt;br /&gt;
&amp;lt;form runat=&amp;quot;server&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;Font Face=&amp;quot;Tahoma&amp;quot; Size=&amp;quot;+1&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;BR&amp;gt;&lt;br /&gt;
&amp;lt;a &lt;br /&gt;
    id=&amp;quot;Anchor2&amp;quot;&lt;br /&gt;
    OnServerClick=&amp;quot;Anchor2_Click&amp;quot; &lt;br /&gt;
    runat=server&lt;br /&gt;
&amp;gt;Click here to remove Table 1&lt;br /&gt;
&amp;lt;/a&amp;gt;&lt;br /&gt;
&amp;lt;BR&amp;gt;&amp;lt;BR&amp;gt;&lt;br /&gt;
&amp;lt;Table&lt;br /&gt;
    id=&amp;quot;Table1&amp;quot;&lt;br /&gt;
    runat=server&lt;br /&gt;
&amp;gt;&lt;br /&gt;
    &amp;lt;TR&lt;br /&gt;
        id=&amp;quot;Row11&amp;quot;&lt;br /&gt;
        runat=server&lt;br /&gt;
    &amp;gt;&lt;br /&gt;
        &amp;lt;TD id=&amp;quot;Cell111&amp;quot; runat=Server&amp;gt;Cell 1&amp;lt;/TD&amp;gt;&lt;br /&gt;
        &amp;lt;TD id=&amp;quot;Cell112&amp;quot; runat=Server BGColor=&amp;quot;Pink&amp;quot;&amp;gt;Cell 2&amp;lt;/TD&amp;gt;&lt;br /&gt;
        &amp;lt;TD id=&amp;quot;Cell113&amp;quot; runat=Server&amp;gt;Cell 3&amp;lt;/TD&amp;gt;&lt;br /&gt;
    &amp;lt;/TR&amp;gt;&lt;br /&gt;
    &amp;lt;TR&lt;br /&gt;
        id=&amp;quot;Row12&amp;quot;&lt;br /&gt;
        runat=server&lt;br /&gt;
    &amp;gt;&lt;br /&gt;
        &amp;lt;TD id=&amp;quot;Cell121&amp;quot; runat=Server&amp;gt;The second row&amp;lt;/TD&amp;gt;&lt;br /&gt;
        &amp;lt;TD id=&amp;quot;Cell122&amp;quot; runat=Server Disabled=True&amp;gt;&lt;br /&gt;
            Disabled Cell&lt;br /&gt;
        &amp;lt;/TD&amp;gt;&lt;br /&gt;
        &amp;lt;TD id=&amp;quot;Cell123&amp;quot; runat=Server&amp;gt;Cell 3&amp;lt;/TD&amp;gt;&lt;br /&gt;
        &amp;lt;TD id=&amp;quot;Cell124&amp;quot; runat=Server Visible=False&amp;gt;&lt;br /&gt;
            Should not see this cell&lt;br /&gt;
        &amp;lt;/TD&amp;gt;&lt;br /&gt;
    &amp;lt;/TR&amp;gt;&lt;br /&gt;
    &amp;lt;TR&lt;br /&gt;
        id=&amp;quot;Row13&amp;quot;&lt;br /&gt;
        runat=server&lt;br /&gt;
    &amp;gt;&lt;br /&gt;
        &amp;lt;TD id=&amp;quot;Cell131&amp;quot; runat=Server ColSpan=3&amp;gt;&lt;br /&gt;
            The text of a long cell that spans all three columns.&lt;br /&gt;
        &amp;lt;/TD&amp;gt;&lt;br /&gt;
    &amp;lt;/TR&amp;gt;&lt;br /&gt;
&amp;lt;/Table&amp;gt;&lt;br /&gt;
&amp;lt;BR&amp;gt;&amp;lt;BR&amp;gt;&amp;lt;BR&amp;gt;&amp;lt;BR&amp;gt;&amp;lt;BR&amp;gt;&lt;br /&gt;
&amp;lt;Table&lt;br /&gt;
    id=&amp;quot;Table2&amp;quot;&lt;br /&gt;
    runat=server&lt;br /&gt;
&amp;gt;&lt;br /&gt;
&amp;lt;/Table&amp;gt;&lt;br /&gt;
&amp;lt;/Font&amp;gt;&lt;br /&gt;
&amp;lt;/Form&amp;gt;&lt;br /&gt;
&amp;lt;/BODY&amp;gt;&lt;br /&gt;
&amp;lt;/HTML&amp;gt;&lt;br /&gt;
           &lt;br /&gt;
       &amp;lt;/source&amp;gt;&lt;br /&gt;
    &lt;br /&gt;
   &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==HTML Table: add row (VB.net)==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- start source code --&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
    &amp;lt;source lang=&amp;quot;csharp&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;%@ Page Language=VB Debug=true %&amp;gt;&lt;br /&gt;
&amp;lt;script runat=server&amp;gt;&lt;br /&gt;
Sub Page_Load(ByVal Sender as Object, ByVal E as EventArgs)&lt;br /&gt;
    Dim MyRow as new HTMLTableRow&lt;br /&gt;
    Dim MyCell as new HTMLTableCell&lt;br /&gt;
    Dim i as Integer&lt;br /&gt;
    Dim j as Integer&lt;br /&gt;
    Table1.BGColor=&amp;quot;Ivory&amp;quot;&lt;br /&gt;
    Table1.Border=2&lt;br /&gt;
    Table1.BorderColor=&amp;quot;LawnGreen&amp;quot;&lt;br /&gt;
    Table1.CellPadding=4&lt;br /&gt;
    Table1.CellSpacing=3&lt;br /&gt;
    Table1.Align=&amp;quot;Center&amp;quot;&lt;br /&gt;
    MyCell.InnerText = &amp;quot;Column 1&amp;quot;&lt;br /&gt;
    MyRow.Cells.Add(MyCell)&lt;br /&gt;
    MyCell = New HTMLTableCell&lt;br /&gt;
    MyCell.InnerText = &amp;quot;Column 2&amp;quot;&lt;br /&gt;
    MyRow.Cells.Add(MyCell)&lt;br /&gt;
    Table1.Rows.Add(MyRow)&lt;br /&gt;
    For i = 2 to 6&lt;br /&gt;
        MyRow = New HTMLTableRow&lt;br /&gt;
        For j = 1 to 2&lt;br /&gt;
            MyCell = New HTMLTableCell&lt;br /&gt;
            MyCell.InnerText = &amp;quot;Cell &amp;quot; &amp;amp; i &amp;amp; &amp;quot;, &amp;quot; &amp;amp; j&lt;br /&gt;
            MyRow.Cells.Add(MyCell)&lt;br /&gt;
        Next&lt;br /&gt;
        Table1.Rows.Add(MyRow)&lt;br /&gt;
    Next    &lt;br /&gt;
End Sub&lt;br /&gt;
&amp;lt;/SCRIPT&amp;gt;&lt;br /&gt;
&amp;lt;HTML&amp;gt;&lt;br /&gt;
&amp;lt;HEAD&amp;gt;&lt;br /&gt;
&amp;lt;TITLE&amp;gt;Adding Rows and Cells to an HTMLTable Control through Code&amp;lt;/TITLE&amp;gt;&lt;br /&gt;
&amp;lt;/HEAD&amp;gt;&lt;br /&gt;
&amp;lt;BODY&amp;gt;&lt;br /&gt;
&amp;lt;form runat=&amp;quot;server&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;Table&lt;br /&gt;
    id=&amp;quot;Table1&amp;quot;&lt;br /&gt;
    runat=server&lt;br /&gt;
&amp;gt;&lt;br /&gt;
&amp;lt;/Table&amp;gt;&lt;br /&gt;
&amp;lt;/Form&amp;gt;&lt;br /&gt;
&amp;lt;/BODY&amp;gt;&lt;br /&gt;
&amp;lt;/HTML&amp;gt;&lt;br /&gt;
           &lt;br /&gt;
       &amp;lt;/source&amp;gt;&lt;br /&gt;
    &lt;br /&gt;
   &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==HTML Table: change background (VB.net)==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- start source code --&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
    &amp;lt;source lang=&amp;quot;csharp&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;%@ Page Language=VB Debug=true %&amp;gt;&lt;br /&gt;
&amp;lt;script runat=server&amp;gt;&lt;br /&gt;
Sub Page_Load(ByVal Sender as Object, ByVal E as EventArgs)&lt;br /&gt;
    Dim MyRow as new HTMLTableRow&lt;br /&gt;
    Dim MyCell as new HTMLTableCell&lt;br /&gt;
    Dim i as Integer&lt;br /&gt;
    Dim j as Integer&lt;br /&gt;
    Table1.BGColor=&amp;quot;Ivory&amp;quot;&lt;br /&gt;
    Table1.Border=2&lt;br /&gt;
    Table1.BorderColor=&amp;quot;LawnGreen&amp;quot;&lt;br /&gt;
    Table1.CellPadding=4&lt;br /&gt;
    Table1.CellSpacing=3&lt;br /&gt;
    Table1.Align=&amp;quot;Center&amp;quot;&lt;br /&gt;
    MyCell.InnerText = &amp;quot;Column 1&amp;quot;&lt;br /&gt;
    MyRow.Cells.Add(MyCell)&lt;br /&gt;
    MyCell = New HTMLTableCell&lt;br /&gt;
    MyCell.InnerText = &amp;quot;Column 2&amp;quot;&lt;br /&gt;
    MyRow.Cells.Add(MyCell)&lt;br /&gt;
    Table1.Rows.Add(MyRow)&lt;br /&gt;
    For i = 2 to 6&lt;br /&gt;
        MyRow = New HTMLTableRow&lt;br /&gt;
        For j = 1 to 2&lt;br /&gt;
            MyCell = New HTMLTableCell&lt;br /&gt;
            MyCell.InnerText = &amp;quot;Cell &amp;quot; &amp;amp; i &amp;amp; &amp;quot;, &amp;quot; &amp;amp; j&lt;br /&gt;
            MyRow.Cells.Add(MyCell)&lt;br /&gt;
        Next&lt;br /&gt;
        Table1.Rows.Add(MyRow)&lt;br /&gt;
    Next    &lt;br /&gt;
End Sub&lt;br /&gt;
&amp;lt;/SCRIPT&amp;gt;&lt;br /&gt;
&amp;lt;HTML&amp;gt;&lt;br /&gt;
&amp;lt;HEAD&amp;gt;&lt;br /&gt;
&amp;lt;TITLE&amp;gt;Adding Rows and Cells to an HTMLTable Control through Code&amp;lt;/TITLE&amp;gt;&lt;br /&gt;
&amp;lt;/HEAD&amp;gt;&lt;br /&gt;
&amp;lt;BODY LEFTMARGIN=&amp;quot;40&amp;quot; TOPMARGIN=&amp;quot;40&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;form runat=&amp;quot;server&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;Table&lt;br /&gt;
    id=&amp;quot;Table1&amp;quot;&lt;br /&gt;
    runat=server&lt;br /&gt;
&amp;gt;&lt;br /&gt;
&amp;lt;/Table&amp;gt;&lt;br /&gt;
&amp;lt;/Form&amp;gt;&lt;br /&gt;
&amp;lt;/BODY&amp;gt;&lt;br /&gt;
&amp;lt;/HTML&amp;gt;&lt;br /&gt;
           &lt;br /&gt;
       &amp;lt;/source&amp;gt;&lt;br /&gt;
    &lt;br /&gt;
   &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==HTML Table: change border (VB.net)==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- start source code --&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
    &amp;lt;source lang=&amp;quot;csharp&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;%@ Page Language=VB Debug=true %&amp;gt;&lt;br /&gt;
&amp;lt;script runat=server&amp;gt;&lt;br /&gt;
Sub Page_Load(ByVal Sender as Object, ByVal E as EventArgs)&lt;br /&gt;
    Dim MyRow as new HTMLTableRow&lt;br /&gt;
    Dim MyCell as new HTMLTableCell&lt;br /&gt;
    Dim i as Integer&lt;br /&gt;
    Dim j as Integer&lt;br /&gt;
    Table1.BGColor=&amp;quot;Ivory&amp;quot;&lt;br /&gt;
    Table1.Border=2&lt;br /&gt;
    Table1.BorderColor=&amp;quot;LawnGreen&amp;quot;&lt;br /&gt;
    Table1.CellPadding=4&lt;br /&gt;
    Table1.CellSpacing=3&lt;br /&gt;
    Table1.Align=&amp;quot;Center&amp;quot;&lt;br /&gt;
    MyCell.InnerText = &amp;quot;Column 1&amp;quot;&lt;br /&gt;
    MyRow.Cells.Add(MyCell)&lt;br /&gt;
    MyCell = New HTMLTableCell&lt;br /&gt;
    MyCell.InnerText = &amp;quot;Column 2&amp;quot;&lt;br /&gt;
    MyRow.Cells.Add(MyCell)&lt;br /&gt;
    Table1.Rows.Add(MyRow)&lt;br /&gt;
    For i = 2 to 6&lt;br /&gt;
        MyRow = New HTMLTableRow&lt;br /&gt;
        For j = 1 to 2&lt;br /&gt;
            MyCell = New HTMLTableCell&lt;br /&gt;
            MyCell.InnerText = &amp;quot;Cell &amp;quot; &amp;amp; i &amp;amp; &amp;quot;, &amp;quot; &amp;amp; j&lt;br /&gt;
            MyRow.Cells.Add(MyCell)&lt;br /&gt;
        Next&lt;br /&gt;
        Table1.Rows.Add(MyRow)&lt;br /&gt;
    Next    &lt;br /&gt;
End Sub&lt;br /&gt;
&amp;lt;/SCRIPT&amp;gt;&lt;br /&gt;
&amp;lt;HTML&amp;gt;&lt;br /&gt;
&amp;lt;HEAD&amp;gt;&lt;br /&gt;
&amp;lt;TITLE&amp;gt;Adding Rows and Cells to an HTMLTable Control through Code&amp;lt;/TITLE&amp;gt;&lt;br /&gt;
&amp;lt;/HEAD&amp;gt;&lt;br /&gt;
&amp;lt;BODY LEFTMARGIN=&amp;quot;40&amp;quot; TOPMARGIN=&amp;quot;40&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;form runat=&amp;quot;server&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;Table&lt;br /&gt;
    id=&amp;quot;Table1&amp;quot;&lt;br /&gt;
    runat=server&lt;br /&gt;
&amp;gt;&lt;br /&gt;
&amp;lt;/Table&amp;gt;&lt;br /&gt;
&amp;lt;/Form&amp;gt;&lt;br /&gt;
&amp;lt;/BODY&amp;gt;&lt;br /&gt;
&amp;lt;/HTML&amp;gt;&lt;br /&gt;
           &lt;br /&gt;
       &amp;lt;/source&amp;gt;&lt;br /&gt;
    &lt;br /&gt;
   &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==HTML Table: change cell padding (VB.net)==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- start source code --&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
    &amp;lt;source lang=&amp;quot;csharp&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;%@ Page Language=VB Debug=true %&amp;gt;&lt;br /&gt;
&amp;lt;script runat=server&amp;gt;&lt;br /&gt;
Sub Page_Load(ByVal Sender as Object, ByVal E as EventArgs)&lt;br /&gt;
    Dim MyRow as new HTMLTableRow&lt;br /&gt;
    Dim MyCell as new HTMLTableCell&lt;br /&gt;
    Dim i as Integer&lt;br /&gt;
    Dim j as Integer&lt;br /&gt;
    Table1.BGColor=&amp;quot;Ivory&amp;quot;&lt;br /&gt;
    Table1.Border=2&lt;br /&gt;
    Table1.BorderColor=&amp;quot;LawnGreen&amp;quot;&lt;br /&gt;
    Table1.CellPadding=4&lt;br /&gt;
    Table1.CellSpacing=3&lt;br /&gt;
    Table1.Align=&amp;quot;Center&amp;quot;&lt;br /&gt;
    MyCell.InnerText = &amp;quot;Column 1&amp;quot;&lt;br /&gt;
    MyRow.Cells.Add(MyCell)&lt;br /&gt;
    MyCell = New HTMLTableCell&lt;br /&gt;
    MyCell.InnerText = &amp;quot;Column 2&amp;quot;&lt;br /&gt;
    MyRow.Cells.Add(MyCell)&lt;br /&gt;
    Table1.Rows.Add(MyRow)&lt;br /&gt;
    For i = 2 to 6&lt;br /&gt;
        MyRow = New HTMLTableRow&lt;br /&gt;
        For j = 1 to 2&lt;br /&gt;
            MyCell = New HTMLTableCell&lt;br /&gt;
            MyCell.InnerText = &amp;quot;Cell &amp;quot; &amp;amp; i &amp;amp; &amp;quot;, &amp;quot; &amp;amp; j&lt;br /&gt;
            MyRow.Cells.Add(MyCell)&lt;br /&gt;
        Next&lt;br /&gt;
        Table1.Rows.Add(MyRow)&lt;br /&gt;
    Next    &lt;br /&gt;
End Sub&lt;br /&gt;
&amp;lt;/SCRIPT&amp;gt;&lt;br /&gt;
&amp;lt;HTML&amp;gt;&lt;br /&gt;
&amp;lt;HEAD&amp;gt;&lt;br /&gt;
&amp;lt;TITLE&amp;gt;Adding Rows and Cells to an HTMLTable Control through Code&amp;lt;/TITLE&amp;gt;&lt;br /&gt;
&amp;lt;/HEAD&amp;gt;&lt;br /&gt;
&amp;lt;BODY LEFTMARGIN=&amp;quot;40&amp;quot; TOPMARGIN=&amp;quot;40&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;form runat=&amp;quot;server&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;Table&lt;br /&gt;
    id=&amp;quot;Table1&amp;quot;&lt;br /&gt;
    runat=server&lt;br /&gt;
&amp;gt;&lt;br /&gt;
&amp;lt;/Table&amp;gt;&lt;br /&gt;
&amp;lt;/Form&amp;gt;&lt;br /&gt;
&amp;lt;/BODY&amp;gt;&lt;br /&gt;
&amp;lt;/HTML&amp;gt;&lt;br /&gt;
           &lt;br /&gt;
       &amp;lt;/source&amp;gt;&lt;br /&gt;
    &lt;br /&gt;
   &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==HTML Table Control (VB.net)==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- start source code --&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
    &amp;lt;source lang=&amp;quot;csharp&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;%@ Page Language=VB Debug=true %&amp;gt;&lt;br /&gt;
&amp;lt;script runat=server&amp;gt;&lt;br /&gt;
&amp;lt;/SCRIPT&amp;gt;&lt;br /&gt;
&amp;lt;HTML&amp;gt;&lt;br /&gt;
&amp;lt;HEAD&amp;gt;&lt;br /&gt;
&amp;lt;TITLE&amp;gt;Displaying Information through the HTMLTable Control&amp;lt;/TITLE&amp;gt;&lt;br /&gt;
&amp;lt;/HEAD&amp;gt;&lt;br /&gt;
&amp;lt;BODY&amp;gt;&lt;br /&gt;
&amp;lt;form runat=&amp;quot;server&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;BR&amp;gt;&amp;lt;BR&amp;gt;&lt;br /&gt;
&amp;lt;table&lt;br /&gt;
    id=&amp;quot;Table1&amp;quot;&lt;br /&gt;
    runat=server&lt;br /&gt;
    bgcolor=&amp;quot;Gray&amp;quot;&lt;br /&gt;
    border=1&lt;br /&gt;
    bordercolor=&amp;quot;Red&amp;quot;&lt;br /&gt;
    cellpadding=2&lt;br /&gt;
    cellspacing=2&lt;br /&gt;
    align=&amp;quot;Left&amp;quot;&lt;br /&gt;
&amp;gt;&lt;br /&gt;
    &amp;lt;tr&lt;br /&gt;
        id=&amp;quot;Row11&amp;quot;&lt;br /&gt;
        runat=server&lt;br /&gt;
        bgcolor=&amp;quot;Yellow&amp;quot;&lt;br /&gt;
        valign=&amp;quot;Top&amp;quot;&lt;br /&gt;
    &amp;gt;&lt;br /&gt;
        &amp;lt;TD id=&amp;quot;Cell111&amp;quot; runat=Server&amp;gt;Cell 1&amp;lt;/TD&amp;gt;&lt;br /&gt;
        &amp;lt;TD id=&amp;quot;Cell112&amp;quot; runat=Server &lt;br /&gt;
            bgcolor=&amp;quot;Pink&amp;quot;&amp;gt;Cell 2&amp;lt;/TD&amp;gt;&lt;br /&gt;
        &amp;lt;TD id=&amp;quot;Cell113&amp;quot; runat=Server&amp;gt;Cell 3&amp;lt;/TD&amp;gt;&lt;br /&gt;
    &amp;lt;/tr&amp;gt;&lt;br /&gt;
    &amp;lt;tr&lt;br /&gt;
        id=&amp;quot;Row12&amp;quot;&lt;br /&gt;
        runat=server&lt;br /&gt;
        valign=&amp;quot;Bottom&amp;quot;&lt;br /&gt;
    &amp;gt;&lt;br /&gt;
        &amp;lt;TD id=&amp;quot;Cell121&amp;quot; runat=Server&amp;gt;The second row&amp;lt;/TD&amp;gt;&lt;br /&gt;
        &amp;lt;TD id=&amp;quot;Cell122&amp;quot; runat=Server &lt;br /&gt;
            BGColor=&amp;quot;Pink&amp;quot; Disabled=True&amp;gt;&lt;br /&gt;
            Disabled Cell&lt;br /&gt;
        &amp;lt;/TD&amp;gt;&lt;br /&gt;
        &amp;lt;TD id=&amp;quot;Cell123&amp;quot; runat=Server&amp;gt;Cell 3&amp;lt;/TD&amp;gt;&lt;br /&gt;
        &amp;lt;TD id=&amp;quot;Cell124&amp;quot; runat=Server Visible=False&amp;gt;&lt;br /&gt;
            Should not see this cell&lt;br /&gt;
        &amp;lt;/TD&amp;gt;&lt;br /&gt;
    &amp;lt;/tr&amp;gt;&lt;br /&gt;
    &amp;lt;tr&lt;br /&gt;
        id=&amp;quot;Row13&amp;quot;&lt;br /&gt;
        runat=server&lt;br /&gt;
        valign=&amp;quot;Bottom&amp;quot;&lt;br /&gt;
    &amp;gt;&lt;br /&gt;
        &amp;lt;TD id=&amp;quot;Cell131&amp;quot; runat=Server ColSpan=3&amp;gt;&lt;br /&gt;
            The text of a long cell that spans all three columns.&lt;br /&gt;
        &amp;lt;/TD&amp;gt;&lt;br /&gt;
    &amp;lt;/tr&amp;gt;&lt;br /&gt;
&amp;lt;/table&amp;gt;&lt;br /&gt;
&amp;lt;/Font&amp;gt;&lt;br /&gt;
&amp;lt;/Form&amp;gt;&lt;br /&gt;
&amp;lt;/BODY&amp;gt;&lt;br /&gt;
&amp;lt;/HTML&amp;gt;&lt;br /&gt;
           &lt;br /&gt;
       &amp;lt;/source&amp;gt;&lt;br /&gt;
    &lt;br /&gt;
   &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Table Row and Column Count (VB.net)==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- start source code --&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
    &amp;lt;source lang=&amp;quot;csharp&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;%@ Page Language=VB Debug=true %&amp;gt;&lt;br /&gt;
&amp;lt;script runat=server&amp;gt;&lt;br /&gt;
Sub Page_Load(ByVal Sender as Object, ByVal E as EventArgs)&lt;br /&gt;
    Dim MyRow as new HTMLTableRow&lt;br /&gt;
    Dim MyCell as new HTMLTableCell&lt;br /&gt;
    Dim i as Integer&lt;br /&gt;
    Dim j as Integer&lt;br /&gt;
    Table2.BGColor=&amp;quot;Ivory&amp;quot;&lt;br /&gt;
    Table2.Border=2&lt;br /&gt;
    Table2.BorderColor=&amp;quot;LawnGreen&amp;quot;&lt;br /&gt;
    Table2.CellPadding=4&lt;br /&gt;
    Table2.CellSpacing=3&lt;br /&gt;
    Table2.Align=&amp;quot;Center&amp;quot;&lt;br /&gt;
    MyCell.InnerText = &amp;quot;Column 1&amp;quot;&lt;br /&gt;
    MyRow.Cells.Add(MyCell)&lt;br /&gt;
    MyCell = New HTMLTableCell&lt;br /&gt;
    MyCell.InnerText = &amp;quot;Column 2&amp;quot;&lt;br /&gt;
    MyRow.Cells.Add(MyCell)&lt;br /&gt;
    Table2.Rows.Add(MyRow)&lt;br /&gt;
    For i = 2 to 6&lt;br /&gt;
        MyRow = New HTMLTableRow&lt;br /&gt;
        For j = 1 to 2&lt;br /&gt;
            MyCell = New HTMLTableCell&lt;br /&gt;
            MyCell.InnerText = &amp;quot;Cell &amp;quot; &amp;amp; i &amp;amp; &amp;quot;, &amp;quot; &amp;amp; j&lt;br /&gt;
            MyRow.Cells.Add(MyCell)&lt;br /&gt;
        Next&lt;br /&gt;
        Table2.Rows.Add(MyRow)&lt;br /&gt;
    Next    &lt;br /&gt;
End Sub&lt;br /&gt;
Sub Anchor1_Click(Source As Object, E as EventArgs)&lt;br /&gt;
    Anchor1.InnerHtml = &amp;quot;Table 1: &amp;quot; &amp;amp; Table1.Rows.Count _&lt;br /&gt;
        &amp;amp; &amp;quot; rows - Table 2: &amp;quot; &amp;amp; Table2.Rows.Count &amp;amp; &amp;quot; rows&amp;quot;&lt;br /&gt;
End Sub&lt;br /&gt;
&amp;lt;/SCRIPT&amp;gt;&lt;br /&gt;
&amp;lt;HTML&amp;gt;&lt;br /&gt;
&amp;lt;HEAD&amp;gt;&lt;br /&gt;
&amp;lt;TITLE&amp;gt;Table Sample Page&amp;lt;/TITLE&amp;gt;&lt;br /&gt;
&amp;lt;/HEAD&amp;gt;&lt;br /&gt;
&amp;lt;BODY&amp;gt;&lt;br /&gt;
&amp;lt;form runat=&amp;quot;server&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;Font Face=&amp;quot;Tahoma&amp;quot; Size=&amp;quot;+1&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;a &lt;br /&gt;
    id=&amp;quot;Anchor1&amp;quot;&lt;br /&gt;
    OnServerClick=&amp;quot;Anchor1_Click&amp;quot; &lt;br /&gt;
    runat=server&lt;br /&gt;
&amp;gt;Click for Row Count&lt;br /&gt;
&amp;lt;/a&amp;gt;&lt;br /&gt;
&amp;lt;BR&amp;gt;&amp;lt;BR&amp;gt;&lt;br /&gt;
&amp;lt;Table&lt;br /&gt;
    id=&amp;quot;Table1&amp;quot;&lt;br /&gt;
    runat=server&lt;br /&gt;
&amp;gt;&lt;br /&gt;
    &amp;lt;TR&lt;br /&gt;
        id=&amp;quot;Row11&amp;quot;&lt;br /&gt;
        runat=server&lt;br /&gt;
    &amp;gt;&lt;br /&gt;
        &amp;lt;TD id=&amp;quot;Cell111&amp;quot; runat=Server&amp;gt;Cell 1&amp;lt;/TD&amp;gt;&lt;br /&gt;
        &amp;lt;TD id=&amp;quot;Cell112&amp;quot; runat=Server BGColor=&amp;quot;Pink&amp;quot;&amp;gt;Cell 2&amp;lt;/TD&amp;gt;&lt;br /&gt;
        &amp;lt;TD id=&amp;quot;Cell113&amp;quot; runat=Server&amp;gt;Cell 3&amp;lt;/TD&amp;gt;&lt;br /&gt;
    &amp;lt;/TR&amp;gt;&lt;br /&gt;
    &amp;lt;TR&lt;br /&gt;
        id=&amp;quot;Row12&amp;quot;&lt;br /&gt;
        runat=server&lt;br /&gt;
    &amp;gt;&lt;br /&gt;
        &amp;lt;TD id=&amp;quot;Cell121&amp;quot; runat=Server&amp;gt;The second row&amp;lt;/TD&amp;gt;&lt;br /&gt;
        &amp;lt;TD id=&amp;quot;Cell122&amp;quot; runat=Server Disabled=True&amp;gt;&lt;br /&gt;
            Disabled Cell&lt;br /&gt;
        &amp;lt;/TD&amp;gt;&lt;br /&gt;
        &amp;lt;TD id=&amp;quot;Cell123&amp;quot; runat=Server&amp;gt;Cell 3&amp;lt;/TD&amp;gt;&lt;br /&gt;
        &amp;lt;TD id=&amp;quot;Cell124&amp;quot; runat=Server Visible=False&amp;gt;&lt;br /&gt;
            Should not see this cell&lt;br /&gt;
        &amp;lt;/TD&amp;gt;&lt;br /&gt;
    &amp;lt;/TR&amp;gt;&lt;br /&gt;
    &amp;lt;TR&lt;br /&gt;
        id=&amp;quot;Row13&amp;quot;&lt;br /&gt;
        runat=server&lt;br /&gt;
    &amp;gt;&lt;br /&gt;
        &amp;lt;TD id=&amp;quot;Cell131&amp;quot; runat=Server ColSpan=3&amp;gt;&lt;br /&gt;
            The text of a long cell that spans all three columns.&lt;br /&gt;
        &amp;lt;/TD&amp;gt;&lt;br /&gt;
    &amp;lt;/TR&amp;gt;&lt;br /&gt;
&amp;lt;/Table&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;BR&amp;gt;&amp;lt;BR&amp;gt;&amp;lt;BR&amp;gt;&amp;lt;BR&amp;gt;&amp;lt;BR&amp;gt;&lt;br /&gt;
&amp;lt;Table&lt;br /&gt;
    id=&amp;quot;Table2&amp;quot;&lt;br /&gt;
    runat=server&lt;br /&gt;
&amp;gt;&lt;br /&gt;
&amp;lt;/Table&amp;gt;&lt;br /&gt;
&amp;lt;/Font&amp;gt;&lt;br /&gt;
&amp;lt;/Form&amp;gt;&lt;br /&gt;
&amp;lt;/BODY&amp;gt;&lt;br /&gt;
&amp;lt;/HTML&amp;gt;&lt;br /&gt;
       &lt;br /&gt;
           &lt;br /&gt;
       &amp;lt;/source&amp;gt;&lt;/div&gt;</summary>
		<author><name>Admin</name></author>	</entry>

	</feed>