C
Cal Who
The code below shows a CollapsiblePanel followed by an iframe.
When the CollapsiblePanel is opened and a treeNode within it is clicked, the
site shows in the iframe.
What I would like is for the CollapsiblePanel to close at that time (in the
real code the tree is very big).
Can you show how to do that?
Thanks
PS Is the way I've coded the iframe OK?
<ajaxToolkit:CollapsiblePanelExtender ID="CollapsiblePanelExtender1"
runat="server" TargetControlID="PnlContent" ExpandControlID="PnlTitle"
CollapseControlID="PnlTitle" TextLabelID="Label1" Collapsed="True"
SuppressPostBack="true">
</ajaxToolkit:CollapsiblePanelExtender>
<asp
anel ID="PnlTitle" runat="server">
SELECT A SITE BY CLICKING HERE
</asp
anel>
<asp
anel ID="PnlContent" runat="server">
<asp:TreeView ID="TreeView2" runat="server">
<Nodes>
<asp:TreeNode Text="SITES" Value="SITES">
<asp:TreeNode NavigateUrl="http://site1" Target="LinksFrame2"
Text="Site1"></asp:TreeNode>
<asp:TreeNode NavigateUrl="http://site2" Target="LinksFrame2"
Text="Site2"></asp:TreeNode>
<asp:TreeNode NavigateUrl="http://site3" Target="LinksFrame2"
Text="Site3"></asp:TreeNode>
</asp:TreeNode>
</Nodes>
</asp:TreeView>
</asp
anel>
<h4>
THE SITE SELECTED DISPLAYS BELOW</h4>
<%-- Must use name per test and documentation. --%>
<iframe name="LinksFrame2" src="MakeBlack.htm" frameborder="0"
height="700px" width="100%" style="background: inherit;">Your browser does
not support iframes.</iframe>
When the CollapsiblePanel is opened and a treeNode within it is clicked, the
site shows in the iframe.
What I would like is for the CollapsiblePanel to close at that time (in the
real code the tree is very big).
Can you show how to do that?
Thanks
PS Is the way I've coded the iframe OK?
<ajaxToolkit:CollapsiblePanelExtender ID="CollapsiblePanelExtender1"
runat="server" TargetControlID="PnlContent" ExpandControlID="PnlTitle"
CollapseControlID="PnlTitle" TextLabelID="Label1" Collapsed="True"
SuppressPostBack="true">
</ajaxToolkit:CollapsiblePanelExtender>
<asp
SELECT A SITE BY CLICKING HERE
</asp
<asp
<asp:TreeView ID="TreeView2" runat="server">
<Nodes>
<asp:TreeNode Text="SITES" Value="SITES">
<asp:TreeNode NavigateUrl="http://site1" Target="LinksFrame2"
Text="Site1"></asp:TreeNode>
<asp:TreeNode NavigateUrl="http://site2" Target="LinksFrame2"
Text="Site2"></asp:TreeNode>
<asp:TreeNode NavigateUrl="http://site3" Target="LinksFrame2"
Text="Site3"></asp:TreeNode>
</asp:TreeNode>
</Nodes>
</asp:TreeView>
</asp
<h4>
THE SITE SELECTED DISPLAYS BELOW</h4>
<%-- Must use name per test and documentation. --%>
<iframe name="LinksFrame2" src="MakeBlack.htm" frameborder="0"
height="700px" width="100%" style="background: inherit;">Your browser does
not support iframes.</iframe>