服务器标记的格式不正确(第5行)
<%@ Control Language="C#" AutoEventWireup="true" CodeFile="SectionLevelTutorialListing.ascx.cs" Inherits="UserControls_SectionLevelTutorialListing" %>
<asp:Repeater ID="TutorialList" runat="server" EnableViewState="False">
<HeaderTemplate><ul></HeaderTemplate>
<ItemTemplate>
<li><asp:HyperLink ID="HyperLink1" runat="server"
NavigateUrl="<%# Eval("Url") %>" Text="<%# Eval("Title")
%>"></asp:HyperLink>
- <%# Eval("Description") %></li>
</ItemTemplate>
<FooterTemplate></ul></FooterTemplate>
</asp:Repeater>
------解决方案--------------------外层用单引号来括里面Eval("***")的双引号
------解决方案--------------------HTML code
<asp:Repeater ID="TutorialList" runat="server" EnableViewState="False">
<HeaderTemplate> <ul> </HeaderTemplate>
<ItemTemplate>
<li> <asp:HyperLink ID="HyperLink1" runat="server"
NavigateUrl=' <%# Eval("Url") %>' Text=' <%# Eval("Title")
%>'> </asp:HyperLink>
- <%# Eval("Description") %> </li>
</ItemTemplate>
<FooterTemplate> </ul> </FooterTemplate>
</asp:Repeater>