Click here to Skip to main content
15,900,907 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Not showing the Expand image in TreeView. What to do? Please Help!

Here's the code..

ASP.NET
<asp:TreeView ID="TreeView1" runat="server" ImageSet="Arrows">
<ParentNodeStyle Font-Bold="False" />
<HoverNodeStyle Font-Underline="True" ForeColor="#5555DD" />
<SelectedNodeStyle Font-Underline="True" ForeColor="#5555DD" HorizontalPadding="0px" VerticalPadding="0px" />
<NodeStyle Font-Names="Verdana" Font-Size="8pt" ForeColor="Black" HorizontalPadding="5px" NodeSpacing="0px" VerticalPadding="0px" />
</asp:TreeView>

here's the output..
Output Image

It was working fine on Visual Studio 2008. When i ported the code to Visual Studio 2005, it shown above error.. What to do? Please Help!
Posted
Updated 5-Nov-14 11:10am
v7
Comments
njammy 5-Nov-14 17:10pm    
Where is the code or css/skin to assign the image to the tree control?
Harmanjeet Singh 5-Nov-14 17:13pm    
haven't assigned any css. It was working fine on Visual Studio 2008. When i ported the code to Visual Studio 2005, it shown above error..
njammy 5-Nov-14 17:15pm    
When you debug the front end page, please share with us the image source the browser is trying to bind to the image. (Right click image and look at source or use developer tools F12 (IE) or right click and inspect element.)
njammy 5-Nov-14 17:22pm    
Please share the image properties from the browser inspect element i.e. <img src=?.../>

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900