Sign In| Join
Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Member
94 Points
149 Posts
May 08, 2012 01:46 PM|LINK
Thank you for the feedback.
I want to put that inside a table I already have in html.
My code HTML code is this:
<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="EmailFacturas.aspx.vb" Inherits="WebRole1.EmailFacturas" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head id="Head" runat="server"> <meta content="text/html; charset=utf-8" http-equiv="Content-Type" /> <title>SGCA - Sistema de Gestão de Competição Automóvel</title> <style type="text/css"> .auto-style2 { text-align: center; margin-top: 0; margin-bottom: 0; width: 1004px; } .auto-style3 { margin-top: 0; margin-bottom: 0; } .auto-style4 { border-width: 0px; } .auto-style5 { outline-color:Black } </style> </head> <body style="background-image: url('styles/fundo%20da%20pagina%20do%20aplicativo.jpg')"> <form id="Form1" runat="server" style="background-color:White; width:1005px; height:731px; margin:auto auto auto auto;"> <div class="page" style="background-position:center; border-top:10px; border-top-color:White" > <p style="border-bottom-color:White; height:6px;"></p> <p class="auto-style2"><img alt="" height="79" src="styles/banner1.jpg" width="967" /><img alt="" height="150" src="styles/banner2.jpg" width="967" /></p> <p class="auto-style2"> <p class="auto-style2"> <img alt="" height="4" src="styles/separador%201.jpg" width="966" /> </p> </div> <div class="main"> <table style="background-color:white; border-color:White; margin:auto auto auto auto; height: 50px; width: 550px;"> <tr> <td> </td> </tr> </table> <table style="background-color:white; border-color:White; margin:auto auto auto auto; height: 50px; width: 550px;"> <tr> <td> <asp:Label ID="Label1" runat="server" Text="Acção:" Width="500px"></asp:Label> </td> </tr> </table> <table style="background-color:White; border-color:White; margin:auto auto auto auto; height: 50px; width: 550px;"> <tr> <td> <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox> </td> <td> <asp:TextBox ID="TextBox2" runat="server"></asp:TextBox> </td> <td> <asp:TextBox ID="TextBox3" runat="server"></asp:TextBox> </td> </tr> </table> <table style="background-color:White; border-color:White; margin:auto auto auto auto; height: 50px; width: 550px;"> <tr> <td> <asp:TextBox ID="TextBox4" runat="server" Width="512px"></asp:TextBox> </td> </tr> </table> <table style="background-color:White; border-color:White; margin:auto auto auto auto; height: 150px; width: 550px;"> <tr> <td> <asp:GridView ID="GridView1" runat="server"> </asp:GridView> </td> </tr> </table> <table style="background-color:White; border-color:White; margin:auto auto auto auto; height: 50px; width: 550px;"> <tr> <td style="width:180px;"> </td> <td style="width:180px;"> </td> <td> <asp:TextBox ID="TextBox5" runat="server"></asp:TextBox> </td> </tr> </table> </div> <div class="footer"> <p class="auto-style2"><img alt="" height="53" src="styles/rodape.jpg" border="0px" style="width: 967px"/></p> </div> </form> </body> </html>
I want to display that table where I have my gridview1 rigth now (I will delete gridview from code).
How to do it?
thank you
PedroRibeiro
Member
94 Points
149 Posts
Re: VB. NET generate a dinamyc table with one line of each color
May 08, 2012 01:46 PM|LINK
Thank you for the feedback.
I want to put that inside a table I already have in html.
My code HTML code is this:
<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="EmailFacturas.aspx.vb" Inherits="WebRole1.EmailFacturas" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head id="Head" runat="server"> <meta content="text/html; charset=utf-8" http-equiv="Content-Type" /> <title>SGCA - Sistema de Gestão de Competição Automóvel</title> <style type="text/css"> .auto-style2 { text-align: center; margin-top: 0; margin-bottom: 0; width: 1004px; } .auto-style3 { margin-top: 0; margin-bottom: 0; } .auto-style4 { border-width: 0px; } .auto-style5 { outline-color:Black } </style> </head> <body style="background-image: url('styles/fundo%20da%20pagina%20do%20aplicativo.jpg')"> <form id="Form1" runat="server" style="background-color:White; width:1005px; height:731px; margin:auto auto auto auto;"> <div class="page" style="background-position:center; border-top:10px; border-top-color:White" > <p style="border-bottom-color:White; height:6px;"></p> <p class="auto-style2"><img alt="" height="79" src="styles/banner1.jpg" width="967" /><img alt="" height="150" src="styles/banner2.jpg" width="967" /></p> <p class="auto-style2"> <p class="auto-style2"> <img alt="" height="4" src="styles/separador%201.jpg" width="966" /> </p> </div> <div class="main"> <table style="background-color:white; border-color:White; margin:auto auto auto auto; height: 50px; width: 550px;"> <tr> <td> </td> </tr> </table> <table style="background-color:white; border-color:White; margin:auto auto auto auto; height: 50px; width: 550px;"> <tr> <td> <asp:Label ID="Label1" runat="server" Text="Acção:" Width="500px"></asp:Label> </td> </tr> </table> <table style="background-color:White; border-color:White; margin:auto auto auto auto; height: 50px; width: 550px;"> <tr> <td> <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox> </td> <td> <asp:TextBox ID="TextBox2" runat="server"></asp:TextBox> </td> <td> <asp:TextBox ID="TextBox3" runat="server"></asp:TextBox> </td> </tr> </table> <table style="background-color:White; border-color:White; margin:auto auto auto auto; height: 50px; width: 550px;"> <tr> <td> <asp:TextBox ID="TextBox4" runat="server" Width="512px"></asp:TextBox> </td> </tr> </table> <table style="background-color:White; border-color:White; margin:auto auto auto auto; height: 150px; width: 550px;"> <tr> <td> <asp:GridView ID="GridView1" runat="server"> </asp:GridView> </td> </tr> </table> <table style="background-color:White; border-color:White; margin:auto auto auto auto; height: 50px; width: 550px;"> <tr> <td style="width:180px;"> </td> <td style="width:180px;"> </td> <td> <asp:TextBox ID="TextBox5" runat="server"></asp:TextBox> </td> </tr> </table> </div> <div class="footer"> <p class="auto-style2"><img alt="" height="53" src="styles/rodape.jpg" border="0px" style="width: 967px"/></p> </div> </form> </body> </html>I want to display that table where I have my gridview1 rigth now (I will delete gridview from code).
How to do it?
thank you