joecool2005
07-18-2007, 02:33 PM
Hi,
I have 2 frames displayed in column.
My left frame is a treeview. The right frame is the result when the user click on a item of the treeview.
How can I display the page on the right side when a user click a item on the treeview?
Here is the code
Web.sitemap
<?xml version="1.0" encoding="utf-8" ?>
<siteMap>
<siteMapNode url="Default.aspx" title="Home Page">
<siteMapNode url="PPC.aspx" title="Data entry">
<siteMapNode url="PPC.aspx?cat=WinMobile" title="Data entry 1"/>
</siteMapNode>
</siteMapNode>
</siteMap>
main.aspx
<frameset id="frameset1" cols="160,*" name="frameset1" border="0" frameSpacing="0" frameBorder="no">
<frame name="left" id="left" src="left.aspx" marginheight="0" marginwidth="0" scrolling="no" NORESIZE>
<frame name="right" id="right" src="right.aspx" marginheight="0" marginwidth="0" NORESIZE>
</frameset>
left.aspx
<form id="form1" runat="server">
<div>
<asp:TreeView ID="TreeView1" runat="server" DataSourceID="SiteMapDataSource1">
</asp:TreeView>
<asp:SiteMapDataSource ID="SiteMapDataSource1" runat="server" ShowStartingNode="False"/>
</div>
</form>
I have 2 frames displayed in column.
My left frame is a treeview. The right frame is the result when the user click on a item of the treeview.
How can I display the page on the right side when a user click a item on the treeview?
Here is the code
Web.sitemap
<?xml version="1.0" encoding="utf-8" ?>
<siteMap>
<siteMapNode url="Default.aspx" title="Home Page">
<siteMapNode url="PPC.aspx" title="Data entry">
<siteMapNode url="PPC.aspx?cat=WinMobile" title="Data entry 1"/>
</siteMapNode>
</siteMapNode>
</siteMap>
main.aspx
<frameset id="frameset1" cols="160,*" name="frameset1" border="0" frameSpacing="0" frameBorder="no">
<frame name="left" id="left" src="left.aspx" marginheight="0" marginwidth="0" scrolling="no" NORESIZE>
<frame name="right" id="right" src="right.aspx" marginheight="0" marginwidth="0" NORESIZE>
</frameset>
left.aspx
<form id="form1" runat="server">
<div>
<asp:TreeView ID="TreeView1" runat="server" DataSourceID="SiteMapDataSource1">
</asp:TreeView>
<asp:SiteMapDataSource ID="SiteMapDataSource1" runat="server" ShowStartingNode="False"/>
</div>
</form>