JavaScript运行时错误:Sys.ArgumentNullException:值不能为null。 [英] JavaScript runtime error: Sys.ArgumentNullException: Value cannot be null.

查看:96
本文介绍了JavaScript运行时错误:Sys.ArgumentNullException:值不能为null。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我收到以下错误:

JavaScript运行时错误:Sys.ArgumentNullException:值不能为null。

参数名称:panelsCreated [9]

同时指向文件中的以下代码(ScriptResource.axd ... [dynamic]):



I am getting the following error:
JavaScript runtime error: Sys.ArgumentNullException: Value cannot be null.
Parameter name: panelsCreated[9]
while pointing to the following code in file(ScriptResource.axd...[dynamic]):

$type.registerClass('Sys.WebForms.InitializeRequestEventArgs', Sys.CancelEventArgs);
$type = Sys.WebForms.PageLoadedEventArgs = function PageLoadedEventArgs(panelsUpdated, panelsCreated, dataItems) {
    /// <summary locid="M:J#Sys.WebForms.PageLoadedEventArgs.#ctor">The arguments for the PageRequestManager's pageLoaded event. The pageLoaded event is raised after the DOM has been updated.</summary>
    /// <param name="panelsUpdated" type="Array">An array of UpdatePanels that were updated.</param>
    /// <param name="panelsCreated" type="Array">An array of UpdatePanels that were created.</param>
    /// <param name="dataItems" type="Object" mayBeNull="true"></param>
    var e = Function._validateParams(arguments, [
        {name: "panelsUpdated", type: Array},
        {name: "panelsCreated", type: Array},
        {name: "dataItems", type: Object, mayBeNull: true}
    ]);
    if (e) throw e;
    Sys.WebForms.PageLoadedEventArgs.initializeBase(this);

    this._panelsUpdated = panelsUpdated;
    this._panelsCreated = panelsCreated;
    this._dataItems = dataItems || new Object();
}



行:if(e)throw e突出显示。



这个当我从显示搜索结果的表中点击详细信息时,会发生这种情况。

按钮成功调用/执行方法,然后产生错误。



代码如下:




with line : " if (e) throw e" highlighted.

This is happening when I click for Detail some item from a table that shows the results of a search.
The button successfully calls/executes a method, and then produces the error.

The code is below:

<HeaderTemplate>
                Detalhar
            </HeaderTemplate>
            <ContentTemplate>
                <div class="botoescima">
                    <table id="botoesNavegacao" style="background-image: removed('../../App_Themes/Default/Imagens/ie/active_middle.jpg');"

                        border="0" cellpadding="0" cellspacing="0">
                        <tr>
                            <td id="tdItens"  runat="server">
                                <img alt="" src="../../App_Themes/Default/Imagens/ie/active_left.jpg" />
                            </td>
                            <td id="tdItens1" width="70px" align="center"  runat="server">
                                <asp:LinkButton BackColor="Transparent" ID="BotaoIncluirItem" runat="server" AccessKey="S"

                                    ValidationGroup="Detalhar" Visible="false">
                                    <span class="textoAbaInterna">Itens</span>
                                </asp:LinkButton>
                            </td>
                            <td id="tdItens2"  runat="server">
                                <img alt="" src="../../App_Themes/Default/Imagens/ie/active_right.jpg" />
                            </td>
                            <td id="tdParcelas"  runat="server">
                                <img alt="" src="../../App_Themes/Default/Imagens/ie/active_left.jpg" />
                            </td>
                            <td id="tdParcelas1" width="70px" align="center"  runat="server">
                                <asp:LinkButton BackColor="Transparent" ID="BotaoIncluirParcelas" runat="server"

                                    AccessKey="S" ValidationGroup="Detalhar" Visible="false">
                                    <span class="textoAbaInterna">Parcelas</span>
                                </asp:LinkButton>
                            </td>
                            <td id="tdParcelas2"  runat="server">
                                <img alt="" src="../../App_Themes/Default/Imagens/ie/active_right.jpg" />
                            </td>
                        </tr>
                    </table>
                    <div id="divAbasInternas"  runat="server" class="divFormularioAba">
                    </div>
                </div>
                <uc2:PickerCliente ID="PickerClienteDetalhe"  runat="server" />
                <uc5:PickerRepresentante ID="PickerRepresentanteDetalhe"  runat="server" />
                <uc3:PickerCondicaoParcelamento ID="PickerCondicaoParcelamento"  runat="server" />
                <uc4:PickerTransportador ID="PickerTransportador"  runat="server" />
                <table>
                    <tr>
                        <td>
                            <gama:ValidationSummaryGama ID="ValidationSummary2"  runat="server" ValidationGroup="Detalhar" />
                        </td>
                    </tr>
                </table>
                <asp:Panel ID="panelConteudoImpressao" runat="server">
                    <asp:FormView ID="FormView" runat="server" DataSourceID="ObjectContainerDataSourceDetalhar"

                        DataKeyNames="IDOrcamentoVenda" OnDataBound="FormView_DataBound">
                        <EditItemTemplate>
                            <table id="tabelaNovoCliente" class="TabelaFormView">
                                <tr>





任何想法问题是什么?或者如何找到它???



ANY IDEAS what the problem is? or how can find it???

推荐答案

type.registerClass(' Sys.WebForms.InitializeRequestEventArgs',Sys.CancelEventArgs);
type.registerClass('Sys.WebForms.InitializeRequestEventArgs', Sys.CancelEventArgs);


type = Sys.WebForms.PageLoadedEventArgs = function PageLoadedEventArgs(panelsUpdated,panelsCreated,dataItems){
/// < 摘要 locid =M:J#Sys.WebForms.PageLoadedEventArgs。#ctor > PageRequestManager的pageLoaded事件的参数。在DOM更新后引发pageLoaded事件。< / summary >
/// < param name =panelsUpdated type =Array > 已更新的UpdatePanel数组。< / param >
/// < span class =code-summarycomment>< param name=\"panelsCreated\" type=\"Array\">An array of UpdatePanels that were created.</param>
/// <param name=\"dataItems\" type=\"Object\" mayBeNull=\"true\"></param>
var e = Function._validateParams(arguments, [
{name: \"panelsUpdated\", type: Array},
{name: \"panelsCreated\", type: Array},
{name: \"dataItems\", type: Object, mayBeNull: true}
]);
if (e) throw e;
Sys.WebForms.PageLoadedEventArgs.initializeBase(this);

this._panelsUpdated = panelsUpdated;
this._panelsCreated = panelsCreated;
this._dataItems = dataItems || new Object();
}
type = Sys.WebForms.PageLoadedEventArgs = function PageLoadedEventArgs(panelsUpdated, panelsCreated, dataItems) { /// <summary locid="M:J#Sys.WebForms.PageLoadedEventArgs.#ctor">The arguments for the PageRequestManager's pageLoaded event. The pageLoaded event is raised after the DOM has been updated.</summary> /// <param name="panelsUpdated" type="Array">An array of UpdatePanels that were updated.</param> /// <param name="panelsCreated" type="Array">An array of UpdatePanels that were created.</param> /// <param name="dataItems" type="Object" mayBeNull="true"></param> var e = Function._validateParams(arguments, [ {name: "panelsUpdated", type: Array}, {name: "panelsCreated", type: Array}, {name: "dataItems", type: Object, mayBeNull: true} ]); if (e) throw e; Sys.WebForms.PageLoadedEventArgs.initializeBase(this); this._panelsUpdated = panelsUpdated; this._panelsCreated = panelsCreated; this._dataItems = dataItems || new Object(); }



with line : \" if (e) throw e\" highlighted.



This is happening when I click for Detail some item from a table that shows the results of a search.

The button successfully calls/executes a method, and then produces the error.



The code is below:




with line : " if (e) throw e" highlighted.

This is happening when I click for Detail some item from a table that shows the results of a search.
The button successfully calls/executes a method, and then produces the error.

The code is below:

<HeaderTemplate>
                Detalhar
            </HeaderTemplate>
            <ContentTemplate>
                <div class="botoescima">
                    <table id="botoesNavegacao" style="background-image: removed('../../App_Themes/Default/Imagens/ie/active_middle.jpg');"

                        border="0" cellpadding="0" cellspacing="0">
                        <tr>
                            <td id="tdItens"  runat="server">
                                <img alt="" src="../../App_Themes/Default/Imagens/ie/active_left.jpg" />
                            </td>
                            <td id="tdItens1" width="70px" align="center"  runat="server">
                                <asp:LinkButton BackColor="Transparent" ID="BotaoIncluirItem" runat="server" AccessKey="S"

                                    ValidationGroup="Detalhar" Visible="false">
                                    <span class="textoAbaInterna">Itens</span>
                                </asp:LinkButton>
                            </td>
                            <td id="tdItens2"  runat="server">
                                <img alt="" src="../../App_Themes/Default/Imagens/ie/active_right.jpg" />
                            </td>
                            <td id="tdParcelas"  runat="server">
                                <img alt="" src="../../App_Themes/Default/Imagens/ie/active_left.jpg" />
                            </td>
                            <td id="tdParcelas1" width="70px" align="center"  runat="server">
                                <asp:LinkButton BackColor="Transparent" ID="BotaoIncluirParcelas" runat="server"

                                    AccessKey="S" ValidationGroup="Detalhar" Visible="false">
                                    <span class="textoAbaInterna">Parcelas</span>
                                </asp:LinkButton>
                            </td>
                            <td id="tdParcelas2"  runat="server">
                                <img alt="" src="../../App_Themes/Default/Imagens/ie/active_right.jpg" />
                            </td>
                        </tr>
                    </table>
                    <div id="divAbasInternas"  runat="server" class="divFormularioAba">
                    </div>
                </div>
                <uc2:PickerCliente ID="PickerClienteDetalhe"  runat="server" />
                <uc5:PickerRepresentante ID="PickerRepresentanteDetalhe"  runat="server" />
                <uc3:PickerCondicaoParcelamento ID="PickerCondicaoParcelamento"  runat="server" />
                <uc4:PickerTransportador ID="PickerTransportador"  runat="server" />
                <table>
                    <tr>
                        <td>
                            <gama:ValidationSummaryGama ID="ValidationSummary2"  runat="server" ValidationGroup="Detalhar" />
                        </td>
                    </tr>
                </table>
                <asp:Panel ID="panelConteudoImpressao" runat="server">
                    <asp:FormView ID="FormView" runat="server" DataSourceID="ObjectContainerDataSourceDetalhar"

                        DataKeyNames="IDOrcamentoVenda" OnDataBound="FormView_DataBound">
                        <EditItemTemplate>
                            <table id="tabelaNovoCliente" class="TabelaFormView">
                                <tr>





ANY IDEAS what the problem is? or how can find it???



ANY IDEAS what the problem is? or how can find it???


check this link[^]


这篇关于JavaScript运行时错误:Sys.ArgumentNullException:值不能为null。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆