joecool2005 Posted July 18, 2007 Share Posted July 18, 2007 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 codeWeb.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> Link to comment Share on other sites More sharing options...
aspnetguy Posted July 19, 2007 Share Posted July 19, 2007 You can set the Target property of the TreeView to globally set where the pages will open or you can set the Target property of the individual TreeNodes you want to set. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.