我不知道这里发生了什么,这段代码可以正常工作并且没有任何问题,然后突然它无缘无故地给出了提到的错误,然后错误消失了。错误在'>行
<asp:SqlDataSource ID="SqlDataSourceCountries" runat="server" ConnectionString="<%$ ConnectionStrings:ApplicationServices1 %>"
SelectCommand="SELECT [CountryID], [country],
(SELECT COUNT(JobID) AS [J]
FROM [Job]
WHERE ([Country].[CountryID] = [CountryID])) AS [JobCount]
FROM [Country] AS [Country] ORDER BY [JobCount] DESC, [country] ASC">
</asp:SqlDataSource>
<script type="text/javascript">
$(document).ready(function () {
$("ul[id*=myid] li").click(function () {
document.getElementById("<%= DivCountries.ClientID %>").style.visibility = 'hidden';
document.getElementById('pSelectedCountry').innerHTML = $(this).html();
$("#<%=hSelectedCountryID.ClientID%>").val(this.id);
$("#<%=hSelectedCountryName.ClientID%>").val(this.innerHTML);
control1OnLoadHandler();
});
});
</script>
<ul id='myid' class="bulletedList">
<asp:Repeater ID="RepeaterCountryList" runat="server" DataSourceID="SqlDataSourceCountries">
<ItemTemplate>
<li id='<%# Eval("[CountryID]") %>'><a>
<%# Eval("[country]") %></a> <a style="color: #808080; font-weight: normal;">(<%# Eval("[JobCount]") %>)</a>
</li>
</ItemTemplate>
</asp:Repeater>
</ul>