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

Threaded View

Previous Post Previous Post   Next Post Next Post
  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]

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