[CLOSED] Control with type 'System.Web.UI.WebControls.PlaceHolder' cannot be handled by layout

  1. #1

    [CLOSED] Control with type 'System.Web.UI.WebControls.PlaceHolder' cannot be handled by layout

    I'm trying to Add an '<asp:PlaceHolder' inside an FormPanel with other '<ext:' Control, but my first issue is the error above...

    Secondl how can I add other '<ext:' controls with '<asp:PlaceHolder' inside a FormPanel

    <%@ Page Language="C#" %>
    
    <%@ Import Namespace="Business.Controllers" %>
    <%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>
    <script runat="server">
        protected void Page_Load(object sender, EventArgs e)
        {
            var txtBox = new TextBox();
    
            this.PlaceHolder1.Controls.Add(txtBox);
    
            txtBox.ID = "textBox1";
            txtBox.Width = Unit.Pixel(250);
        }
    
    </script>
    <!DOCTYPE html>
    <html>
    <head id="Head1" runat="server">
        <title>Multi Node TreePanel built from code-behind - Ext.NET Examples</title>
    </head>
    <body>
        <form id="Form1" runat="server">
        <ext:ResourceManager ID="ResourceManager1" runat="server" />
        <br />
        <ext:FormPanel ID="FormPanel1" runat="server" BodyPadding="5" Border="false" Title="Testing adding Placeholder"
            Layout="AnchorLayout">
            <Content>
                <asp:PlaceHolder ID="PlaceHolder1" runat="server" />
            </Content>
        </ext:FormPanel>
        </form>
    </body>
    </html>
    Last edited by Daniil; Jul 20, 2012 at 1:42 PM. Reason: [CLOSED]
  2. #2
    Hi,

    Layouts can't work with non Ext.NET widgets.

    Please remove
    Layout="AnchorLayout"
  3. #3
    I get the same error !!!

    Quote Originally Posted by Daniil View Post
    Hi,

    Layouts can't work with non Ext.NET widgets.

    Please remove
    Layout="AnchorLayout"
  4. #4
    Yes, there is the default layout in FormPanel.

    Generally, FormPanel doesn't make any sense with non Ext.NET controls.

    Please use a common Container instead of FormPanel.
  5. #5
    A container will NOT fit the BILL !

    I'm trying to work with something like this below and I need the Layout to work for me, any Ideas??


    <%@ Page Language="C#" %>
    
    <%@ Import Namespace="Business.Controllers" %>
    <%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>
    <script runat="server">
        protected void Page_Load(object sender, EventArgs e)
        {
            var txtBox = new TextBox();
    
            this.PlaceHolder1.Controls.Add(txtBox);
    
            txtBox.ID = "textBox1";
            txtBox.Width = Unit.Pixel(250);
        }
    
    </script>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head id="Head1" runat="server">
        <title>Ext.NET Examples</title>
    </head>
    <body>
        <form id="Form1" runat="server">
        <ext:ResourceManager ID="ResourceManager1" runat="server">
            <Listeners>
                <DocumentReady Handler="#{TabPanel1}.add(#{Panel1});  #{TabPanel1}.setActiveTab(0);" />
            </Listeners>
        </ext:ResourceManager>
        <br />
        <ext:TabPanel ID="TabPanel1" runat="server" />
        <ext:Panel runat="server" ID="Panel1" Title="Title">
            <Content>
                <asp:PlaceHolder ID="PlaceHolder1" runat="server" />
                <ext:Label Text="label1" ID="label1" runat="server" />
            </Content>
        </ext:Panel>
        </form>
    </body>
    </html>
    Quote Originally Posted by Daniil View Post
    Yes, there is the default layout in FormPanel.

    Generally, FormPanel doesn't make any sense with non Ext.NET controls.

    Please use a common Container instead of FormPanel.
  6. #6
    Quote Originally Posted by Fahd View Post
    A container will NOT fit the BILL !

    I'm trying to work with something like this below and I need the Layout to work for me, any Ideas??


    <%@ Page Language="C#" %>
    
    <%@ Import Namespace="Business.Controllers" %>
    <%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>
    <script runat="server">
        protected void Page_Load(object sender, EventArgs e)
        {
            var txtBox = new TextBox();
    
            this.PlaceHolder1.Controls.Add(txtBox);
    
            txtBox.ID = "textBox1";
            txtBox.Width = Unit.Pixel(250);
        }
    
    </script>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head id="Head1" runat="server">
        <title>Ext.NET Examples</title>
    </head>
    <body>
        <form id="Form1" runat="server">
        <ext:ResourceManager ID="ResourceManager1" runat="server">
            <Listeners>
                <DocumentReady Handler="#{TabPanel1}.add(#{Panel1});  #{TabPanel1}.setActiveTab(0);" />
            </Listeners>
        </ext:ResourceManager>
        <br />
        <ext:TabPanel ID="TabPanel1" runat="server" />
        <ext:Panel runat="server" ID="Panel1" Title="Title">
            <Content>
                <asp:PlaceHolder ID="PlaceHolder1" runat="server" />
                <ext:Label Text="label1" ID="label1" runat="server" />
            </Content>
        </ext:Panel>
        </form>
    </body>
    </html>
    1. The .Layout does not apply to Controls added in a <Content> region, only <Items>.
    2. The <asp:PlaceHolder> cannot be added in the <Items> Collection.

    Those are the limitations.
    Geoffrey McGill
    Founder
  7. #7
    Thanks Geoffrey...

    I have decided to you the '<ext:Panel' and I'll do some sort of work around...

    <%@ Page Language="C#" %>
    
    <%@ Import Namespace="Business.Controllers" %>
    <%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>
    <script runat="server">
        protected void Page_Load(object sender, EventArgs e)
        {
            var txtBox = new TextBox();
    
            this.PlaceHolder1.Controls.Add(txtBox);
    
            txtBox.ID = "textBox1";
            txtBox.Width = Unit.Pixel(250);
        }
    
    </script>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head id="Head1" runat="server">
        <title>Ext.NET Examples</title>
    </head>
    <body>
        <form id="Form1" runat="server">
        <ext:ResourceManager ID="ResourceManager1" runat="server">
            <Listeners>
                <DocumentReady Handler="#{TabPanel1}.add(#{Panel1});  #{TabPanel1}.setActiveTab(0);" />
            </Listeners>
        </ext:ResourceManager>
        <br />
        <ext:TabPanel ID="TabPanel1" runat="server" />
        <ext:Panel runat="server" ID="Panel1" Title="Title">
            <Content>
                <asp:PlaceHolder ID="PlaceHolder1" runat="server" />
                <ext:Label Text="label1" ID="label1" runat="server" />
            </Content>
        </ext:Panel>
        </form>
    </body>
    </html>
    Quote Originally Posted by geoffrey.mcgill View Post
    1. The .Layout does not apply to Controls added in a <Content> region, only <Items>.
    2. The <asp:PlaceHolder> cannot be added in the <Items> Collection.

    Those are the limitations.
  8. #8
    Please clarify can we mark the thread as closed?
  9. #9
    Yes, please close!

    I'll use the Container inside of a Panel...

    Quote Originally Posted by Daniil View Post
    Please clarify can we mark the thread as closed?

Similar Threads

  1. Replies: 11
    Last Post: Mar 20, 2013, 4:43 PM
  2. Replies: 2
    Last Post: Jun 06, 2012, 3:38 PM
  3. Replies: 5
    Last Post: Jan 05, 2012, 10:03 AM
  4. [CLOSED] Unsupported type: System.Guid (Migration from 0.8.3 to 1.0)
    By vedagopal2004 in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Feb 07, 2011, 8:16 AM
  5. Replies: 4
    Last Post: Feb 01, 2011, 11:54 AM

Tags for this Thread

Posting Permissions