This is a migrated thread and some comments may be shown as answers.

Uncaught ReferenceError: True is not defined

0 Answers 726 Views
ScriptManager and StyleSheetManager
This is a migrated thread and some comments may be shown as answers.
章民
Top achievements
Rank 1
章民 asked on 13 Jun 2017, 08:23 AM

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)

No answers yet. Maybe you can help?

Tags
ScriptManager and StyleSheetManager
Asked by
章民
Top achievements
Rank 1
Share this question
or