<Table>标记必须写在ListView内,不要runat="server",需要这个的是<tbody>,以下是经过修改过的Atlas HOL 5:
<%@ Page Language="C#" %>
<!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="Head1" runat="server">
<title>Atlas Server Controls Lab</title>
<link rel="stylesheet" type="text/css" href="site.css" />
</head>
<body>
<form id="form1" runat="server">
<div>
<atlas:ScriptManager id="mgr1" runat="server" />
<atlas:button runat="server" id="fillButton" text="Get URL List">
<click>
<actions>
<atlas:invokeMethodAction target="dataSource1"
method="select" />
</actions>
</click>
</atlas:button>
<atlas:dataSource runat="server" id="dataSource1"
serviceUrl="~/DataService.asmx" />
<atlas:ListView runat="server" id="listView1" itemtemplatecontrolid="templateItem">
<bindings>
<atlas:Binding DataContext="dataSource1" DataPath="data"
Property="data" />
</bindings>
<LayoutTemplate>
<table>
<tbody id="trBody" runat="server">
<tr runat="server" id="templateItem">
<td id="itemTemplateColumn" runat="server" align=right>
<strong id="Strong1" runat="server">
<atlas:label runat="server" id="nameLabel">
<bindings>
<atlas:binding DataPath="Name" Property="text" />
</bindings>
</atlas:label>
</strong>
</td>
<td runat="server" align=left>
<atlas:hyperlink runat="server" id="companyUrl" >
<bindings>
<atlas:binding DataPath="Description" Property="text" />
</bindings>
</atlas:hyperlink>
</td>
</tr>
</tbody>
</table>
</LayoutTemplate>
<emptytemplate>No Data</emptytemplate>
</atlas:ListView>
</div>
</form>
</body>
</html>
![](/Images/OutliningIndicators/ExpandedBlockStart.gif)
![](/Images/OutliningIndicators/None.gif)
![](/Images/OutliningIndicators/None.gif)
![](/Images/OutliningIndicators/None.gif)
![](/Images/OutliningIndicators/None.gif)
![](/Images/OutliningIndicators/None.gif)
![](/Images/OutliningIndicators/None.gif)
![](/Images/OutliningIndicators/None.gif)
![](/Images/OutliningIndicators/None.gif)
![](/Images/OutliningIndicators/None.gif)
![](/Images/OutliningIndicators/None.gif)
![](/Images/OutliningIndicators/None.gif)
![](/Images/OutliningIndicators/None.gif)
![](/Images/OutliningIndicators/None.gif)
![](/Images/OutliningIndicators/None.gif)
![](/Images/OutliningIndicators/None.gif)
![](/Images/OutliningIndicators/None.gif)
![](/Images/OutliningIndicators/None.gif)
![](/Images/OutliningIndicators/None.gif)
![](/Images/OutliningIndicators/None.gif)
![](/Images/OutliningIndicators/None.gif)
![](/Images/OutliningIndicators/None.gif)
![](/Images/OutliningIndicators/None.gif)
![](/Images/OutliningIndicators/None.gif)
![](/Images/OutliningIndicators/None.gif)
![](/Images/OutliningIndicators/None.gif)
![](/Images/OutliningIndicators/None.gif)
![](/Images/OutliningIndicators/None.gif)
![](/Images/OutliningIndicators/None.gif)
![](/Images/OutliningIndicators/None.gif)
![](/Images/OutliningIndicators/None.gif)
![](/Images/OutliningIndicators/None.gif)
![](/Images/OutliningIndicators/None.gif)
![](/Images/OutliningIndicators/None.gif)
![](/Images/OutliningIndicators/None.gif)
![](/Images/OutliningIndicators/None.gif)
![](/Images/OutliningIndicators/None.gif)
![](/Images/OutliningIndicators/None.gif)
![](/Images/OutliningIndicators/None.gif)
![](/Images/OutliningIndicators/None.gif)
![](/Images/OutliningIndicators/None.gif)
![](/Images/OutliningIndicators/None.gif)
![](/Images/OutliningIndicators/None.gif)
![](/Images/OutliningIndicators/None.gif)
![](/Images/OutliningIndicators/None.gif)
![](/Images/OutliningIndicators/None.gif)
![](/Images/OutliningIndicators/None.gif)
![](/Images/OutliningIndicators/None.gif)
![](/Images/OutliningIndicators/None.gif)
![](/Images/OutliningIndicators/None.gif)
![](/Images/OutliningIndicators/None.gif)
![](/Images/OutliningIndicators/None.gif)
![](/Images/OutliningIndicators/None.gif)
![](/Images/OutliningIndicators/None.gif)
![](/Images/OutliningIndicators/None.gif)
![](/Images/OutliningIndicators/None.gif)