<asp:TableCell AccessKey="string" AssociatedHeaderCellID="string" BackColor="color name|#dddddd" BorderColor="color name|#dddddd" BorderStyle="NotSet|None|Dotted|Dashed|Solid|Double|Groove|Ridge| Inset|Outset" BorderWidth="size" ColumnSpan="integer" CssClass="string" Enabled="True|False" EnableTheming="True|False" EnableViewState="True|False" Font-Bold="True|False" Font-Italic="True|False" Font-Names="string" Font-Overline="True|False" Font-Size="string|Smaller|Larger|XX-Small|X-Small|Small|Medium| Large|X-Large|XX-Large" Font-Strikeout="True|False" Font-Underline="True|False" ForeColor="color name|#dddddd" Height="size" HorizontalAlign="NotSet|Left|Center|Right|Justify" ID="string" OnDataBinding="DataBinding event handler" OnDisposed="Disposed event handler" OnInit="Init event handler" OnLoad="Load event handler" OnPreRender="PreRender event handler" OnUnload="Unload event handler" RowSpan="integer" runat="server" SkinID="string" Style="string" TabIndex="integer" Text="string" ToolTip="string" VerticalAlign="NotSet|Top|Middle|Bottom" Visible="True|False" Width="size" Wrap="True|False" > </asp:TableCell>
<%@ Page Language="VB" %> <script runat="server"> Sub Page_Load(sender As Object,e As EventArgs) Dim i As integer Dim lblText As Label For i = 1 To 5 lblText = Me.FindControl("Label"&i) lblText.Text = "www.ThaiCreate.Com " & i Next End Sub </script> <html> <head> </head> <body> <form runat="server"> <asp:Table id="MyTable" runat="server" cellspacing="0" cellpadding="5" border="1"> <asp:TableRow runat="server"> <asp:TableCell colspan="2" runat="server"> <asp:Label id="Label1" text="Label" runat="Server" /> </asp:TableCell> </asp:TableRow> <asp:TableRow runat="server"> <asp:TableCell runat="server"> <asp:Label id="Label2" text="Label" runat="Server" /> </asp:TableCell> <asp:TableCell runat="server"> <asp:Label id="Label3" text="Label" runat="Server" /> </asp:TableCell> </asp:TableRow> <asp:TableRow runat="server"> <asp:TableCell runat="server"> <asp:Label id="Label4" text="Label" runat="Server" /> </asp:TableCell> <asp:TableCell runat="server"> <asp:Label id="Label5" text="Label" runat="Server" /> </asp:TableCell> </asp:TableRow> </asp:Table> </form> </body> </html>
ช่วยกันสนับสนุนรักษาเว็บไซต์ความรู้แห่งนี้ไว้ด้วยการสนับสนุน Source Code 2.0 ของทีมงานไทยครีเอท