Jul 19, 2012, 4:18 PM
[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
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]