[CLOSED] Panel Contect Load from Code Behind

  1. #1

    [CLOSED] Panel Contect Load from Code Behind

    I'm trying to programmatically set panel content from the code behind. I've tried the below code but it does not render and it does not give me an error.

    Code Behind
    Public Sub Test_Load(ByVal sender As Object, ByVal e As DirectEventArgs)
            Panel9.RemoveAll()
            Dim ldr As New ComponentLoader
            ldr.Url = "http://ext.net"
            ldr.Mode = LoadMode.Frame
            'ldr.DisableCaching = True
            Panel9.Loader = ldr
    
        End Sub
    ASPX Codes

    
    <ext:Panel ID="Panel9" runat="server" Layout="FitLayout" Title="Center">
            <TopBar>
                <ext:Toolbar ID="Toolbar1" runat="server">
                    <Items>
                        <ext:Button ID="Button1" runat="server" Text="Load with Html Mode">
                            <DirectEvents>
                                <Click OnEvent="Test_Load">
                                </Click>
                            </DirectEvents>
                        </ext:Button>
                        
                    </Items>
                </ext:Toolbar>
            </TopBar>
            <Loader ID="Loader1" runat="server" DisableCaching="true" Url="/webform3.aspx" Mode="Frame"
                Renderer="" AutoLoad="true">
                <LoadMask ShowMask="true" />
            </Loader>
        </ext:Panel>
    Last edited by Baidaly; Jun 20, 2013 at 11:28 PM. Reason: [CLOSED]
  2. #2
    Hi @HOWARDJ,

    Please use the LoadContent method.

    Example (C#)
    this.Panel1.LoadContent("http://ext.net");
  3. #3
    Perfect, that fixed the problem.

Similar Threads

  1. [CLOSED] Load Mask in code behind
    By bayoglu in forum 2.x Legacy Premium Help
    Replies: 2
    Last Post: Feb 07, 2013, 11:42 PM
  2. Replies: 1
    Last Post: Jul 07, 2011, 8:34 PM
  3. Load mask from code behind
    By maephisto in forum 1.x Help
    Replies: 11
    Last Post: Apr 13, 2011, 2:33 PM
  4. 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
  5. Replies: 13
    Last Post: Feb 24, 2010, 5:34 PM

Tags for this Thread

Posting Permissions