[2.0 rc1] Control with type 'Ext.Net.XScript' cannot be handled by layout
from http://forums.ext.net/showthread.php...in-usercontrol
This error appears in the following situation in Test1.aspx
main.master
--Ext.Panel Layout="FitLayout"
----Content
------ContentPlaceHolder id="cp"
Test1.aspx
--Content ContentPlaceHolderID="cp"
----ext:XScript
------script
Test2.aspx
--Content ContentPlaceHolderID="cp"
----script
Test2.aspx works. Test1 gives the error in the title.
I deem this limitation with XScript to be a defect or bug.
I decided to build you guys a real example that shows a legitimate usage of the product that should work.
TestControl.aspx
Code:
<%@ Page Language="C#" %>
<%@ Register src="Test1.ascx" tagname="TTest1" tagprefix="sc" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<script runat="server">
</script>
<ext:ResourceManager ID="R1" runat="server" />
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
</head>
<body>
<ext:Viewport ID="P" runat="server" Layout="VBoxLayout" Title="Outter">
<LayoutConfig>
<ext:VBoxLayoutConfig Align="Stretch" />
</LayoutConfig>
<Content>
<sc:TTest1 runat="server" />
</Content>
</ext:Viewport>
</body>
</html>
Test1.ascx
Code:
<%@ Control Language="C#" ClassName="TTest1" %>
<script runat="server">
</script>
<ext:XScript ID="XScript1" runat="server" />
<ext:Panel ID="P1" runat="server" Flex="1" Title="Panel1">
<Items>
<ext:Label Text="Test" />
</Items>
</ext:Panel>
<ext:Panel ID="P2" runat="server" Flex="1" Title="Panel1">
<Items>
</Items>
</ext:Panel>
<ext:Window ID="W" runat="server" Title="Title" Modal="true" />
The only way to get this code to run is remove the XScript from the control. Unfortunately, this limitation is going to cause me to have to go back to 1.4.