[CLOSED] Getting "BADRESPONSE Unexpected token '<'" error while trying to bind html value to ext:ModelField .....

  1. #1

    [CLOSED] Getting "BADRESPONSE Unexpected token '<'" error while trying to bind html value to ext:ModelField .....


    We have some html formatted text saved in db (sqlserver) as varchar.
    Now when i tried to get this text from db and bind to grid or any other control i am getting this error "BADRESPONSE Unexpected token '<'"
    I tried with removing reference of store to grid, so now its binding data only to store, even facing same error.
    While if i replaced this text with normal string its working fine. (working fine with ID=1 and Message=TESTING123, in DB )
    find bellow my table structure and code used in aspx. (please revert in case of any query)

    Table Value in DB
    ID | Message
    1 | <div>TESTING123</div>

    .aspx code
    <asp:SqlDataSource ID="SqlDataSource"  runat="server" SelectCommand="select ID , Message From table order by SortOrder" SelectCommandType="Text">
                <asp:Parameter Name="ID" Type="Int32" />
                <asp:Parameter Name="Viewed" Type="Boolean" />
        <ext:Store runat="server" ID="Store" DataSourceID="SqlDataSource"
                <ext:Model runat="server" IDProperty="ID">
                        <ext:ModelField Name="ID" Type="Int" />
                        <ext:ModelField Name="Message" Type="String"  />
    Last edited by Daniil; Feb 17, 2015 at 11:44 AM. Reason: Please use [CODE] tags, [CLOSED]
  2. #2
    Hi @iansriley,

    Please review your post wrapping the code in [CODE] tags.
    Forum Guidelines For Posting New Topics
  3. #3
    Here is a duplicate:

    @iansriley, please avoid posting duplicates.

    Also, please do not forget to use [CODE] tags.

Similar Threads

  1. Error BADRESPONSE: Unexpected token ILLEGAL
    By aydada in forum 2.x Help
    Replies: 2
    Last Post: Aug 07, 2014, 10:46 AM
  2. Replies: 2
    Last Post: Aug 26, 2013, 10:52 AM
  3. BADRESPONSE: Unexpected token <
    By ascsolutions in forum 1.x Help
    Replies: 2
    Last Post: Jan 30, 2013, 1:38 PM
  4. [CLOSED] [MVC] Export Excel return "BADRESPONSE: Unexpected token <"
    By UnifyEducation in forum 2.x Legacy Premium Help
    Replies: 1
    Last Post: Aug 02, 2012, 3:05 PM
  5. Replies: 3
    Last Post: Apr 16, 2012, 1:56 PM

Posting Permissions