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

  1. #1

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

    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>
    Last edited by Daniil; Aug 07, 2014 at 1:46 PM. Reason: [CLOSED]
  2. #2
    Hi @hdsoso,

    I cannot reproduce it with the latest Ext.NET in FireFox and IE10.
  3. #3
    Ext.net 2.5.2.10682
    Click image for larger version. 

Name:	QQ??20140806204416.jpg 
Views:	18 
Size:	104.7 KB 
ID:	14001
    i use google chrome , really produce the error
    Click image for larger version. 

Name:	QQ??20140806211423.png 
Views:	26 
Size:	74.1 KB 
ID:	14011
    Last edited by hdsoso; Aug 06, 2014 at 1:16 PM.
  4. #4
    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?
  5. #5
    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/archi...view-2013.aspx
  6. #6
    thank you , Daniil

Similar Threads

  1. Replies: 1
    Last Post: Jun 09, 2014, 11:21 AM
  2. Replies: 3
    Last Post: Oct 10, 2013, 4:03 PM
  3. Replies: 7
    Last Post: Jun 11, 2013, 4:54 AM
  4. Replies: 0
    Last Post: Aug 09, 2012, 1:27 PM
  5. Replies: 17
    Last Post: Oct 12, 2011, 4:54 PM

Posting Permissions