Jan 15, 2010, 10:30 AM
[CLOSED] Multiple UserControls, Column and Tabs
Take the following page. With the 2 user controls on the second tab I set the "name" property of ct4 in my page load. This for some unknown reason populates the property of the other control too.
If the 2 user controls are on tab one then it works fine, also if the usercontrols are removed from the column layout then it works fine also. Any idea why this is happening?
Edit: It only seems to affect the text box in the usercontrol not the date or time field
If the 2 user controls are on tab one then it works fine, also if the usercontrols are removed from the column layout then it works fine also. Any idea why this is happening?
Edit: It only seems to affect the text box in the usercontrol not the date or time field
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
Me.ct4.Name = "Page Four text ere....."
Me.ct4.ByDate = Now
End Sub
<%@ Register src="~\Controls/CopyTo.ascx" tagname="CopyTo" tagprefix="CTO" %>
<ext:FitLayout ID="FitLayout1" runat="server">
<ext:TabPanel ID="TabPanel1" LayoutOnTabChange="true" runat="server" Border="true">
<Tabs>
<%-- First Tab --%>
<ext:Tab ID="TabOne" runat="server" Title="DC41-Use of Force: Page One" Icon="User">
<Body>
<ext:FormPanel ID="pnlRight" runat="server" Border="true" Header="false" MonitorPoll="50"
MonitorValid="true" StyleSpec="padding:2px">
<Body>
</Body>
</ext:FormPanel>
</Body>
</ext:Tab>
<ext:Tab ID="TabTwo" runat="server" Title="DC41-Use of Force: Page Two" Icon="User">
<Body>
<ext:ColumnLayout ID="ColumnLayout1" runat="server">
<%-- Column --%>
<ext:LayoutColumn ColumnWidth=".5">
<ext:FormPanel ID="FormPanel1" runat="server" Border="true" Header="false" MonitorPoll="50"
MonitorValid="true" StyleSpec="padding:2px">
<Body>
<ext:FormLayout ID="FormLayout1" runat="server" LabelAlign="Left" LabelWidth="100">
<ext:Anchor>
<ext:Panel ID="Panel22" Border="false" runat="server">
<Body>
<CTO:CopyTo runat="server" ID="ct3" />
</Body>
</ext:Panel>
</ext:Anchor>
<ext:Anchor>
<ext:Panel ID="Panel44" Border="false" runat="server">
<Body>
<CTO:CopyTo runat="server" ID="ct4" />
</Body>
</ext:Panel>
</ext:Anchor>
</ext:FormLayout>
</Body>
</ext:FormPanel>
</ext:LayoutColumn>
</ext:ColumnLayout>
</Body>
</ext:Tab>
</Tabs>
</ext:TabPanel>
</ext:FitLayout>
(Control is attached if you need it)