I have no idea what is happening here, this code works and nothing wrong with it, then suddenly it gives the mentioned error with no reasons and then the error disappears. the error is in the line '>
<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>