title: how to write grid view in html table?
body: <p>I have this grid view and I want to write it as html table but I don't know how
  I want to write it in ( table ,thead,  td and tr ) tags . I want to know how to write it in html table</p>
  
  <pre><code> &lt;asp:GridView ID="GridView1" runat="server" AllowPaging="True" EnableSortingAndPagingCallbacks="false" 
                             BackColor="White" BorderColor="#999999" 
                             ViewStateMode="Enabled" width="713px" CellPadding="3" 
                             HorizontalAlign="Center" AllowSorting="True" OnPageIndexChanging="GridView1_PageIndexChanging"
                             BorderStyle="Solid" BorderWidth="1px" ForeColor="Black"  ShowFooter="True" 
                             GridLines="Vertical" AutoGenerateColumns="False" PageSize="20"  onrowdatabound="GridView1_RowDataBound"
                           Height="16px" &gt;
                             &lt;Columns&gt;
          &lt;asp:TemplateField HeaderText="الرصيد"&gt;
              &lt;ItemTemplate&gt;
                  &lt;asp:Label runat="server" ID="lblTotal" Text=""&gt;&lt;/asp:Label&gt;
              &lt;/ItemTemplate&gt;
          &lt;/asp:TemplateField&gt;
           &lt;asp:TemplateField HeaderText="مدين"&gt;
              &lt;ItemTemplate&gt;
                  &lt;div style="padding:0 0 5px 0"&gt; &lt;asp:Label ID="debit" runat="server" Text='&lt;%# (Eval("stat_flag").ToString() =="d" ) ? string.Format("{0:0.000}",float.Parse(Eval("stat_amount").ToString())): "0.00" %&gt;'&gt;&lt;/asp:Label&gt;&lt;/div&gt;
   &lt;div&gt;&lt;asp:Label ID="lblGrandTotal" runat="server" /&gt;&lt;/div&gt;
              &lt;/ItemTemplate&gt;
               &lt;FooterTemplate&gt;
          &lt;asp:Label ID="totallblDebAmount" runat="server" /&gt;
       &lt;/FooterTemplate&gt;   
          &lt;/asp:TemplateField&gt;
                &lt;asp:TemplateField HeaderText="دائن"&gt;
              &lt;ItemTemplate&gt;
                    &lt;div style="padding:0 0 5px 0"&gt;&lt;asp:Label ID="credit"   
             runat="server" Text='&lt;%# (Eval("stat_flag").ToString() =="c" ) ?   
       string.Format("{0:0.000}",float.Parse(Eval("stat_amount").ToString())):   
             "0.00" %&gt;'&gt;&lt;/asp:Label&gt;&lt;/div&gt;
              &lt;/ItemTemplate&gt;
               &lt;FooterTemplate&gt;
          &lt;asp:Label ID="totallblCredAmount" runat="server" /&gt;
       &lt;/FooterTemplate&gt;   
          &lt;/asp:TemplateField&gt;
                                  &lt;asp:BoundField  DataField="stat_desc" 
                                  HeaderText="البيان" ItemStyle-Font-   
       Size="Small"&gt;
      &lt;ItemStyle Font-Size="Small"&gt;&lt;/ItemStyle&gt;
                                 &lt;/asp:BoundField&gt;
                                  &lt;asp:BoundField  DataField="trans_name" 
                               HeaderText=" نوع السند " ItemStyle-Font-  
                    Size="Small"&gt;
      &lt;ItemStyle Font-Size="Small"&gt;&lt;/ItemStyle&gt;
                                 &lt;/asp:BoundField&gt;
                              &lt;asp:BoundField  DataField="serial" 
                               HeaderText=" رقم السند " ItemStyle-Font-   
              Size="Small"&gt;
           &lt;ItemStyle Font-Size="Small"&gt;&lt;/ItemStyle&gt;
                                 &lt;/asp:BoundField&gt;
                                   &lt;asp:TemplateField HeaderText="التاريخ"&gt;
              &lt;ItemTemplate&gt;
                   &lt;asp:Label ID="date" runat="server" Text='&lt;%#Eval("stat_date" ,"{0:dd/MM/yyyy}" )%&gt;'&gt; &gt;&lt;/asp:Label&gt;
              &lt;/ItemTemplate&gt;
               &lt;FooterTemplate&gt;
     &lt;div style="padding:0 0 5px 0"&gt;&lt;asp:Label ID="Label5" Text="اجمالي الصفحة     
    " runat="server" /&gt;&lt;/div&gt;
       &lt;/FooterTemplate&gt;   
          &lt;/asp:TemplateField&gt;
                             &lt;/Columns&gt;
                               &lt;FooterStyle BackColor="#336699" Font-  
    Bold="True" ForeColor="White" HorizontalAlign="right" /&gt;
                             &lt;RowStyle BorderColor="Black" BorderStyle="Solid" 
      BorderWidth="1px" /&gt;
                             &lt;AlternatingRowStyle BackColor="#DDDDDD" /&gt;
  
                             &lt;HeaderStyle BackColor="#aaaaaa" Font-Bold="True"   
    HorizontalAlign="Center" 
                                 VerticalAlign="Middle" ForeColor="Black"    
      BorderColor="Black" BorderStyle="Solid" BorderWidth="1px"/&gt;
                             &lt;PagerStyle BackColor="#999999" ForeColor="Blue"   
       HorizontalAlign="Left" Font-Bold="True" 
                             Font-Underline="False" BorderStyle="Solid" 
      BorderWidth="1px" BorderColor="#666666" /&gt;
                         &lt;/asp:GridView&gt;
  </code></pre>
  
  <p>for an example I want to write it in html format like this format</p>
  
  <pre><code>   &lt;TABLE CELLPADDING=6&gt;
    &lt;THEAD&gt;
     &lt;TR&gt; &lt;TH&gt;Weekday&lt;/TH&gt; &lt;TH&gt;Date&lt;/TH&gt; &lt;TH&gt;Manager&lt;/TH&gt; &lt;TH&gt;Qty&lt;/TH&gt; &lt;/TR&gt;
  &lt;/THEAD&gt;
  &lt;TBODY&gt;
   &lt;TR&gt; &lt;TD&gt;Mon&lt;/TD&gt; &lt;TD&gt;09/11&lt;/TD&gt; &lt;TD&gt;Kelsey&lt;/TD&gt;  &lt;TD&gt;639&lt;/TD&gt;  &lt;/TR&gt;
   &lt;TR&gt; &lt;TD&gt;Tue&lt;/TD&gt; &lt;TD&gt;09/12&lt;/TD&gt; &lt;TD&gt;Lindsey&lt;/TD&gt; &lt;TD&gt;596&lt;/TD&gt;  &lt;/TR&gt;
   &lt;TR&gt; &lt;TD&gt;Wed&lt;/TD&gt; &lt;TD&gt;09/13&lt;/TD&gt; &lt;TD&gt;Randy&lt;/TD&gt;   &lt;TD&gt;1135&lt;/TD&gt; &lt;/TR&gt;
   &lt;TR&gt; &lt;TD&gt;Thu&lt;/TD&gt; &lt;TD&gt;09/14&lt;/TD&gt; &lt;TD&gt;Susan&lt;/TD&gt;   &lt;TD&gt;1002&lt;/TD&gt; &lt;/TR&gt;
    &lt;TR&gt; &lt;TD&gt;Fri&lt;/TD&gt; &lt;TD&gt;09/15&lt;/TD&gt; &lt;TD&gt;Randy&lt;/TD&gt;   &lt;TD&gt;908&lt;/TD&gt;  &lt;/TR&gt;
     &lt;TR&gt; &lt;TD&gt;Sat&lt;/TD&gt; &lt;TD&gt;09/16&lt;/TD&gt; &lt;TD&gt;Lindsey&lt;/TD&gt; &lt;TD&gt;371&lt;/TD&gt;  &lt;/TR&gt;
       &lt;TR&gt; &lt;TD&gt;Sun&lt;/TD&gt; &lt;TD&gt;09/17&lt;/TD&gt; &lt;TD&gt;Susan&lt;/TD&gt;   &lt;TD&gt;272&lt;/TD&gt;  &lt;/TR&gt;
          &lt;/TBODY&gt;
        &lt;TFOOT id="table_footer"&gt;
         &lt;TR&gt; &lt;TH ALIGN=LEFT COLSPAN=3&gt;Total&lt;/TH&gt; &lt;TH&gt;4923&lt;/TH&gt; &lt;/TR&gt;
       &lt;/TFOOT&gt;
       &lt;/TABLE&gt;
       &lt;/body&gt;
       &lt;/html&gt;
  </code></pre>