[CLOSED] BADRESPONSE: Unexpected token <

  1. #1

    [CLOSED] BADRESPONSE: Unexpected token <

    Hi, Im having this error when I try to open a window or show a pdf file. With the provisional resolve from a a ext.net form. I have tried to change use textfields instead of labels but im still getting the same error.
    Click image for larger version. 

Name:	Captura1.PNG 
Views:	144 
Size:	14.6 KB 
ID:	25149

    Here is a piece of my Aspx file:
    <ext:Panel ID="Paneltabla" runat="server" Region="Center" Layout="ColumnLayout" AutoScroll="true" ColumnWidth="1" >
                    <Items>
                        <ext:Panel runat ="server" ColumnWidth ="0.30" Layout="ColumnLayout">
                            <Items>
                                <ext:Panel runat ="server" ColumnWidth ="0.25" Layout="ColumnLayout" >
                                    <Items>
                                        <ext:Label runat="server" ID="Label3" Text="" ColumnWidth="1" ></ext:Label>
                                    </Items>
                                </ext:Panel>
                                <ext:Panel runat ="server" ColumnWidth ="0.25" Layout="ColumnLayout" Frame="true" MarginSpec="50 0 0 0">
                                    <Items>
                                        <ext:Label runat="server" ID="crm" Text="CRM" ColumnWidth="1" Cls="titulo" MarginSpec="5 0 5 0"></ext:Label>
                                        <ext:Label runat="server" ID="Labelno" Text="NO" ColumnWidth="1" Cls="titulo" MarginSpec="5 0 5 0"></ext:Label>
                                        <ext:Label runat="server" ID="Labelsi" Text="SI" ColumnWidth="1" Cls="titulo" MarginSpec="5 0 5 0"></ext:Label>
                                        <ext:Label runat="server" ID="Labeltotal" Text="TOTAL" ColumnWidth="1" Cls="titulo" MarginSpec="5 0 5 0"></ext:Label>
                                               
                                    </Items>
                                </ext:Panel>
                                <ext:Panel runat ="server" ColumnWidth ="0.25" Layout="ColumnLayout" Frame="true" MarginSpec="50 0 0 0">
                                    <Items>
                                        <ext:Label runat="server" ID="Label1" Text="CASH" ColumnWidth="1" Cls="titulo" MarginSpec="5 0 5 0"></ext:Label>
                                        <ext:Label runat="server" ID="Labelcashno" Name="Labelcashno" ColumnWidth="1" Cls="normal" MarginSpec="5 0 5 0" />
                                        <ext:Label runat="server" ID="Labelcashsi" Text="" ColumnWidth="1" Cls="normal" MarginSpec="5 0 5 0"></ext:Label>
                                        <ext:Label runat="server" ID="Labelcashtotal" Text="" ColumnWidth="1" Cls="normal" MarginSpec="5 0 5 0"></ext:Label>
                                               
                                    </Items>
                                </ext:Panel>
                                <ext:Panel runat ="server" ColumnWidth ="0.25" Layout="ColumnLayout" Frame="true" MarginSpec="50 0 0 0">
                                    <Items>
                                        <ext:Label runat="server" ID="Label2" Text="TARJETA" ColumnWidth="1" Cls="titulo" MarginSpec="5 0 5 0"></ext:Label>
                                        <ext:Label runat="server" ID="Labeltarjetano" Text="" ColumnWidth="1" Cls="normal" MarginSpec="5 0 5 0"></ext:Label>
                                        <ext:Label runat="server" ID="Labeltarjetasi" Text="" ColumnWidth="1" Cls="normal" MarginSpec="5 0 5 0"></ext:Label>
                                        <ext:Label runat="server" ID="Labeltarjetatotal" Text="" ColumnWidth="1" Cls="normal" MarginSpec="5 0 5 0"></ext:Label>
                                                
                                    </Items>
                                </ext:Panel>      
                            </Items>
                        </ext:Panel>
                  </Items> 
                </ext:Panel>
    Labels texts are updated after clicking a button.

    <ext:Button ID="botonfactura" runat="server" text ="aceptar" MarginSpec="20 0 0 30">
                                           <DirectEvents>
                                               <Click OnEvent="factura"></Click>
                                           </DirectEvents>
                                       </ext:Button>
    Last edited by fabricio.murta; Oct 06, 2018 at 12:08 AM. Reason: no feedback from the user in 7+ days
  2. #2
    Hello @PascuV!

    I don't see anything out of the ordinary in your code snippets, they look fine. I believe what you should be looking at is the actual response you are getting from the server right after you do the corresponding request. It should be enough to just run the page (without debugging from VS) then using your browser's developer tools and checking the response sent back in the network monitoring part of the dev tools.

    I can suggest you an apporach that will help us help you further: if you can reduce the page to the smallest set of code that still reproduces the issue (simplify it down to a test case specific to the problem) and share that code here, then we can run, reproduce, and effectively advice you on exactly what's happening and how to overcome the issue -- and also log that as a bug if so.

    Hope this helps!
    Fabrício Murta
    Developer & Support Expert
  3. #3
    Hello, @PascuV!

    It's been a while since we last replied your inquiry here and still no feedback from you. Do you still need help with this issue? If so, we're eagerly looking forward for more details so we can reproduce your issue, understand what's going on, and then give you a solution.

    We may mark the thread as closed if you do not post a follow-up in 7+ days from now, but we won't lock it up, so you'll still be able to post afterwards.
    Fabrício Murta
    Developer & Support Expert

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. BADRESPONSE: Unexpected token <
    By ascsolutions in forum 1.x Help
    Replies: 2
    Last Post: Jan 30, 2013, 1:38 PM
  3. [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
  4. BADRESPONSE: Unexpected token { on calendar control
    By Felixkirathe in forum 2.x Help
    Replies: 1
    Last Post: Apr 17, 2012, 4:07 PM
  5. Replies: 3
    Last Post: Apr 16, 2012, 1:56 PM

Posting Permissions