<table width="100%" border="1">
<tr>
<td colspan="2" height="100px">
</td>
</tr>
<tr>
<td width="20%">
<asp:TreeView ID="TreeView1" runat="server"
onselectednodechanged="Tre
<Nodes>
<asp:TreeNode Text="page1" Value="page1" >
<asp:TreeNode Text="1" Value="1">
<asp:TreeNode Text="1.2" Value="1.2"></asp:TreeNode
<asp:TreeNode Text="1.1" Value="1.1"></asp:TreeNode
</asp:TreeNode>
<asp:TreeNode Text="2" Value="2"></asp:TreeNode>
<asp:TreeNode Text="3" Value="3"></asp:TreeNode>
</asp:TreeNode>
<asp:TreeNode Text="page2" Value="page2">
<asp:TreeNode Text="10" Value="10"></asp:TreeNode>
<asp:TreeNode Text="11" Value="11"></asp:TreeNode>
<asp:TreeNode Text="12" Value="12"></asp:TreeNode>
</asp:TreeNode>
</Nodes>
</asp:TreeView>
</td>
<td width="80%" id="helpcontent" runat="server" ></td>
</tr>
</table>
this should be in the .cs file:
protected void TreeView1_SelectedNodeChan
{
//place your code to read xml and display in place of treeview1.selectedNode.Tex
helpcontent.InnerHtml= TreeView1.SelectedNode.Tex
}
the above code sample will work exactly what u want..
Main Topics
Browse All Topics





by: bobby010606Posted on 2009-11-04 at 23:09:17ID: 25747300
My exact idea is something like MSDN.com....I am attaching a file please take it as referance ...My output should be exactly like this with my page's data
Please give me the best way to do this Experts
Sample Image