PDA

View Full Version : [CLOSED] Uncaught Error: Syntax error, unrecognized expression: div.\



hdsoso
Aug 05, 2014, 3:00 PM
hi, ext.net team.
why show error :
Uncaught Error: Syntax error, unrecognized expression: div.\


<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm1.aspx.cs" Inherits="bbs.hdsoso.com.test.WebForm1" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title></title>
<script runat="server">

protected void Page_Load(object sender, EventArgs e)
{

}
protected void ReadArt(object sender, StoreReadDataEventArgs e)
{
var bid = Convert.ToInt32(Request["bid"]);
int start = e.Start;
int limit = e.Limit;
int num = 5;
//所有子节点

var lArts1 = new object[]
{
new {id=1,title="this is a title"},
new {id=2,title="this is a title"},
new {id=3,title="this is a title"},
new {id=4,title="this is a title"},
new {id=5,title="this is a title"}
};
e.Total = num;
s_art.DataSource = lArts1;
s_art.DataBind();
}
</script>
</head>
<body>
<form id="form1" runat="server">
<ext:ResourceManager runat="server" SourceFormatting="True"></ext:ResourceManager>
<ext:Panel ID="p_art" runat="server" Border="False">
<Items>
<ext:DataView runat="server" ItemSelector="boardlist"
EmptyText="<li>暂无数据</li>" Cls="postlist">
<Store>
<ext:Store runat="server" ID="s_art" OnReadData="ReadArt" PageSize="20">

<Model>
<ext:Model ID="Model1" runat="server">
<Fields>
<ext:ModelField Name="id"></ext:ModelField>
<ext:ModelField Name="title"></ext:ModelField>
</Fields>
</ext:Model>
</Model>
<Proxy>
<ext:PageProxy></ext:PageProxy>
</Proxy>
</ext:Store>
</Store>
<Tpl ID="Tpl1" runat="server">
<Html>
<tpl for=".">
<div class="boardlist">
<a class="infolist" title="{title}" href="qiz_art.aspx?aid={id}" target="_blank">{title}</a>
</div>
</tpl>
</Html>
</Tpl>
</ext:DataView>
</Items>


<BottomBar>
<ext:Toolbar runat="server">
<Items>
<ext:PagingToolbar Border="False" runat="server" StoreID="s_art"></ext:PagingToolbar>
</Items>
</ext:Toolbar>
</BottomBar>
</ext:Panel>
</form>
</body>
</html>

Daniil
Aug 05, 2014, 3:41 PM
Hi @hdsoso,

I cannot reproduce it with the latest Ext.NET in FireFox and IE10.

hdsoso
Aug 06, 2014, 12:47 PM
Ext.net 2.5.2.10682
14001
i use google chrome , really produce the error
14011

Daniil
Aug 07, 2014, 8:00 AM
I cannot reproduce in Chrome as well.


Ext.net 2.5.2.10682

Is it the public v2.5.2 release? Seems it is not.

So, it is a custom build from SVN and I have no idea what is the latest revision in your build.

Could you, please, test with the latest Ext.NET sources from the SVN trunk?

Daniil
Aug 07, 2014, 8:46 AM
We guess you use VS 2013. If so, please turn off EnableBrowserLink in Web.config appSettings.

<add key="vs:EnableBrowserLink" value="false"/>




More details:
http://blogs.msdn.com/b/webdev/archive/2013/06/28/browser-link-feature-in-visual-studio-preview-2013.aspx

hdsoso
Aug 07, 2014, 1:35 PM
thank you , Daniil