Click here to Skip to main content
15,888,062 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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]):

C#
$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();
}

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:

ASP.NET
<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???
Posted
Comments
Jameel VM 22-Jul-13 11:12am    
did you debug the script?

1 solution

 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900