Load a page to a panel not working...

  1. #1

    Load a page to a panel not working...

    Hi Friend,

    I have a panel inside a panel tab like shown bellow:
                      ...
                    <Center>
                        <ext:Panel runat="server" Title="Report">
                            <Body>
                                <ext:FitLayout ID="FitLayout1" runat="server">
                                    <ext:Panel ID="pnl_report" runat="server" Height="300" Title="Report Here">
                                        <Body>
                                        </Body>
                                    </ext:Panel>
                                </ext:FitLayout>
                            </Body>
                        </ext:Panel>
                    </Center>
                </ext:BorderLayout>
            </Body>
        </ext:ViewPort>
    On the server side I would like to load a form after doing some database business on it and I'm doing:
           Public Sub ajaxBuildReport(ByVal sender As Object, ByVal e As Coolite.Ext.Web.AjaxEventArgs)
                ...
                some database business here...
                ...
    
                'REPORT LOAD
                pnl_report.AutoLoad.Mode = Coolite.Ext.Web.LoadMode.IFrame
                pnl_port.AutoLoad.Url = "myReport.aspx"
     
           End Sub
    But when I click the button, the sub is surely fired but the form "myReport.aspx" is not loaded... and the panel remains blank.

    This is the client code to call this sub:
                   <ext:Button ID="btn_showReport" runat="server" Icon="Accept" Text="Show Report...">
                                  <AjaxEvents>
                                           <Click OnEvent="ajaxBuildReport">
                                                     <EventMask ShowMask="true" MinDelay="200" Msg="building your report wait..." />
                                           </Click>
                                  </AjaxEvents>                                           
                   </ext:Button>
    So, what's missing ?

    Thank's
  2. #2

    RE: Load a page to a panel not working...

    *Hi,

    Add to the end of your server side handler
    pnl_port.Load()


  3. #3

    RE: Load a page to a panel not working...

    Perfect !
    Thank you very much.

Similar Threads

  1. Replies: 0
    Last Post: Feb 06, 2012, 7:29 PM
  2. How can I Load aspx Page in Panel?
    By archana in forum 1.x Help
    Replies: 2
    Last Post: Dec 16, 2011, 4:29 AM
  3. how to load data to grid panel in page load
    By andylaiyongsing in forum 1.x Help
    Replies: 1
    Last Post: Apr 16, 2010, 10:27 AM
  4. Replies: 3
    Last Post: Feb 03, 2010, 10:11 AM
  5. [CLOSED] How to load a page from a Panel?
    By flormariafr in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Feb 01, 2010, 7:14 PM

Posting Permissions