Uncaught ReferenceError: True is not defined

1 posts, 0 answers
  1. 章民
    章民 avatar
    20 posts
    Member since:
    Oct 2012

    Posted 13 Jun 2017 Link to this post

    I run my ASP.NET WebForm with C# Project, its appear some error message as below:

    I try to add signalr mechanism. PassPDFRequest is the javascript function to send data to signalr server. But I also have another problem I cannot add valiad breakpoint in the aspx for debugging the javascript code. So I cannot see the parameters of the PassPDFRequest function in aspx.

    I run the PassPDFRequest with RadScriptManager. I also used the ScriptManager. But the error message are the same.

    Does somebody know how to solve this problem?

    string szJs = "PassPDFRequest('" + ViewState["HospArea"].ToString() + "','" + pdfPath + "','" + szPathHttp + "','" + szPathPhy + "'," + pageIndex.ToString() + "," + isOpen.ToString() + ");";
    RadScriptManager.RegisterStartupScript(this, this.GetType(), "KeyPassPDFRequest", szJs, true);

     

    Uncaught ReferenceError: True is not defined   Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=ScriptManager1_TSM&compress=1&_TSM_CombinedScripts…:15 Uncaught ReferenceError: True is not defined
        at <anonymous>:1:296
        at Sys._ScriptLoader._loadScriptsInternal (Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=ScriptManager1_TSM&compress=1&_TSM_CombinedScripts…:15)
        at Sys._ScriptLoader._loadScriptsInternal (Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=ScriptManager1_TSM&compress=1&_TSM_CombinedScripts…:15)
        at Sys._ScriptLoader._loadScriptsInternal (Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=ScriptManager1_TSM&compress=1&_TSM_CombinedScripts…:15)
        at Sys._ScriptLoader._nextSession (Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=ScriptManager1_TSM&compress=1&_TSM_CombinedScripts…:15)
        at Sys._ScriptLoader._loadScriptsInternal (Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=ScriptManager1_TSM&compress=1&_TSM_CombinedScripts…:15)
        at Sys._ScriptLoader._nextSession (Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=ScriptManager1_TSM&compress=1&_TSM_CombinedScripts…:15)
        at Sys._ScriptLoader.loadScripts (Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=ScriptManager1_TSM&compress=1&_TSM_CombinedScripts…:15)
        at Sys.WebForms.PageRequestManager._onFormSubmitCompleted (Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=ScriptManager1_TSM&compress=1&_TSM_CombinedScripts…:15)
        at Array.<anonymous> (Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=ScriptManager1_TSM&compress=1&_TSM_CombinedScripts…:6)
Back to Top