T
Tony Johansson
Hello!
Here is an example and as you can see I have no closing tag on element table
and it works just fine how is that possible ?
Can somebody explain that.
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs"
Inherits="_Default" %>
<!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 runat="server">
<title>Untitled Page</title>
</head>
<body>
<form id="form1" runat="server">
<asp:Repeater ID="MyFriends" runat="server">
<HeaderTemplate>
<table style="border: 1px double #000000;">
<tr style="background-color: #00FF00;">
<td>First Name</td>
<td>Last Name</td>
<td>Telephone</td>
</tr>
</HeaderTemplate>
<ItemTemplate>
<tr style="background-color: #FFFF00">
<td><%# Eval("fname")%></td>
<td><%# Eval("lname")%></td>
<td><%# Eval("phone")%></td>
</tr>
</ItemTemplate>
<AlternatingItemTemplate>
<tr style="background-color: #00FF00">
<td><%# Eval("fname")%></td>
<td><%# Eval("lname")%></td>
<td><%# Eval("phone")%></td>
</tr>
</AlternatingItemTemplate>
</asp:Repeater>
</form>
</body>
</html>
//Tony
Here is an example and as you can see I have no closing tag on element table
and it works just fine how is that possible ?
Can somebody explain that.
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs"
Inherits="_Default" %>
<!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 runat="server">
<title>Untitled Page</title>
</head>
<body>
<form id="form1" runat="server">
<asp:Repeater ID="MyFriends" runat="server">
<HeaderTemplate>
<table style="border: 1px double #000000;">
<tr style="background-color: #00FF00;">
<td>First Name</td>
<td>Last Name</td>
<td>Telephone</td>
</tr>
</HeaderTemplate>
<ItemTemplate>
<tr style="background-color: #FFFF00">
<td><%# Eval("fname")%></td>
<td><%# Eval("lname")%></td>
<td><%# Eval("phone")%></td>
</tr>
</ItemTemplate>
<AlternatingItemTemplate>
<tr style="background-color: #00FF00">
<td><%# Eval("fname")%></td>
<td><%# Eval("lname")%></td>
<td><%# Eval("phone")%></td>
</tr>
</AlternatingItemTemplate>
</asp:Repeater>
</form>
</body>
</html>
//Tony