Subscribe to Subscribers

Online Members

ankita
More...

Forums » .NET » ASP.NET »

treeview problem


Posted Date: 11 Feb 2009      Posted By:: vidhya     Member Level: Gold    Member Rank: 575     Points: 1   Responses: 1



hi frnds,


i am using treeview with site map. when i click on the node1 then it will have subnodes and if i ckick on node2 then my node1 is getting expanddepth in o position.

it should go to - to + sign when i see the 2n node2


site.aspx page:coding

<asp:TreeView DataSourceID="SiteMapDataSource1" MaxDataBindDepth="1" ExpandDepth="0"
ExpandImageUrl="Images/closed.gif" CollapseImageUrl="Images/open.gif" ID="TreeView1"
runat="server">
</asp:TreeView>
<asp:SiteMapDataSource ID="SiteMapDataSource1" runat="server"></asp:SiteMapDataSource>
-------------
sweb.sitemap:coding

<siteMap>
<siteMapNode title="Home" >
<siteMapNode title="Introduction to ASP.NET" url="~/default.aspx" >
<siteMapNode title="What's New in Whidbey?" />
<siteMapNode title="Introduction to Visual Web Developer"/>
</siteMapNode>
<siteMapNode title="Building A Web Application" url="~/development/default.aspx">
<siteMapNode title="Building a Simple Application" url="~/development/simple/default.aspx">
<siteMapNode title="Sharing Code Between Pages" url="~/development/simple/codedirectory.aspx"/>
</siteMapNode>
</siteMapNode>
</siteMapNode>
</siteMap>




Responses

#347111    Author: sasikala      Member Level: Gold      Member Rank: 0     Date: 14/Feb/2009   Rating: 2 out of 52 out of 5     Points: 1

Hi
refer this link

http://msdn.microsoft.com/en-us/library/7a9swst5.aspx

Regards,
sasikala


 
Post Reply

 This thread is locked for new responses. Please post your comments and questions as a separate thread.
If required, refer to the URL of this page in your new post.



Next : Is there free visual studio 2008 trail version available?
Previous : prob in coping selected value of one drop down to another
Return to Discussion Forum
Post New Message
Category:

Related Messages

Active Members
TodayLast 7 Daysmore...

Awards & Gifts
Talk to Webmaster Tony John
Copyright © SpiderWorks Technologies Pvt Ltd., Kochi, India
2005 - 2013 All Rights Reserved.
.NET and other trademarks mentioned in this site belong to Microsoft and other respective trademark owners.
Articles, tutorials and all other content offered here is for educational purpose only.
We are not associated with Microsoft or its partners.