ここで何が起こっているのかわかりません。このコードは機能し、何も問題はありません。突然、理由もなく前述のエラーが発生し、エラーは消えます。エラーは行にあります '>
<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>