[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)
            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">
                <ext:Toolbar ID="Toolbar1" runat="server">
                        <ext:Button ID="Button1" runat="server" Text="Load with Html Mode">
                                <Click OnEvent="Test_Load">
            <Loader ID="Loader1" runat="server" DisableCaching="true" Url="/webform3.aspx" Mode="Frame"
                Renderer="" AutoLoad="true">
                <LoadMask ShowMask="true" />
    Last edited by Baidaly; Jun 21, 2013 at 12:28 AM. Reason: [CLOSED]
  2. #2
    Hi @HOWARDJ,

    Please use the LoadContent method.

    Example (C#)
  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 08, 2013, 12:42 AM
  2. Replies: 1
    Last Post: Jul 07, 2011, 9:34 PM
  3. Load mask from code behind
    By maephisto in forum 1.x Help
    Replies: 11
    Last Post: Apr 13, 2011, 3: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, 11:27 AM
  5. Replies: 13
    Last Post: Feb 24, 2010, 6:34 PM

Tags for this Thread

Posting Permissions