[CLOSED] Error executing child request for handler 'Ext.Net.SelfRenderingPage

  1. #1

    [CLOSED] Error executing child request for handler 'Ext.Net.SelfRenderingPage

    The context is the same I have exposed in my past post.
    n my cshtml file i have the following code in script section :
      var exportExcel = function() {
                App.PNLCenter.body.mask('Export');
                Ext.net.DirectMethod.request({
                    url: "ExportExcel",
                    cleanRequest: true,
                    isUpload: true,
                    params: {
                        //data: Ext.getCmp('ComboBoxFilter').rawValue
                        data: App.gridAllBdg.getRowsValues()
                    }
                });
                App.PNLCenter.body.unmask();
            };
    in the page code i have a button deslared as shown below :
     Html.X().Button()
                            .Text("Esporta")
                            .ID("Esporta")
                            .Handler("exportExcel()")
                            .Icon(Icon.PageExcel)
                            .Disabled(false)
                            .StandOut(false)
    and in the controller I have the direct method declared as shown below :
     public ActionResult ExportExcel(string data)
            {
                //Actions
                Response.Close();
                return this.Direct();
            }
    Wneh the direct method pass the control to the main page I got the error in the line of the cshtml layout invoking the ResourceManager:
     @Html.X().ResourceManager().StateProvider(StateProvider.Cookie).FormID("idmv")
    that says
    Error executing child request for handler 'Ext.Net.SelfRenderingPage'.
    The problem seems related to the Respose.End() that is necessary to close the stream od the exported excel file.
    Any suggestion?
    Thanks in advance for help.
    Marco
    Last edited by Daniil; Mar 03, 2015 at 10:55 AM. Reason: [CLOSED]
  2. #2
    Hello Marco,

    The context is the same I have exposed in my past post.
    I'm not sure what thread you were referring to, but unfortunately I was unable to get your code sample working.

    When you're able to post a simplified (and working) sample demonstrating as much of the scenario as possible, we will take another look.
    Geoffrey McGill
    Founder & CEO
  3. #3
    In ASP.NET the problem can be solved putting in the code behind the following code :
    Public Overrides Sub VerifyRenderingInServerForm(ByVal control As System.Web.UI.Control)
    ' empty, needed for export2Excel to work.
    End Sub
    How can I do the same thing in ext.net?
    Simone
  4. #4
    Hello,

    I believe the VerifyRenderingInServerForm Method is native ASP.NET and is still available to use in Ext.NET.

    Ext.NET controls shouldn't require this call, although I'm still unsure about your scenario because a proper code sample has not been supplied.
    Last edited by geoffrey.mcgill; Feb 24, 2015 at 2:12 PM.
    Geoffrey McGill
    Founder & CEO

Similar Threads

  1. [CLOSED] Request error
    By GavinLou in forum 2.x Premium Help
    Replies: 18
    Last Post: Feb 27, 2014, 8:42 AM
  2. Replies: 1
    Last Post: Sep 13, 2012, 7:38 PM
  3. Request failure error
    By Vaishali in forum 1.x Help
    Replies: 0
    Last Post: May 09, 2012, 6:23 AM
  4. Replies: 5
    Last Post: Mar 21, 2011, 6:15 PM
  5. [CLOSED] Store Load-handler cant reload child store
    By Jurke in forum 1.x Premium Help
    Replies: 2
    Last Post: Feb 04, 2011, 8:56 AM

Tags for this Thread

Posting Permissions