Hai..

i have Problem with Treeview control......

i am developed one web application...

i am have many aspx page in this project..but all page undercontrol with treeview ..

i am alreay download the IE Web Controls from microsoft site..

I build the batch file then automatically created "Microsoft.Web.UI.WebControls.dll"

("C:\Program Files\IE Web Controls\build\Microsoft.Web.UI.WebControls.dll")

then i am go to add reference to this control..

then html view add this line then register this control

<%@ Register TagPrefix="ie" Namespace="Microsoft.Web.UI.WebControls" Assembly="Microsoft.Web.UI.WebControls, Version=, Culture=neutral" %>

<form><ie:treeview id="Treeview3" runat="server">
<ie:treenodetype ImageUrl="file:///\\system107\Webservices\THiRU\Treeimages\folder.gif" ExpandedImageUrl="file:///\\system107\Webservices\THiRU\Treeimages\folder.gif"
Type="Folder"></ie:treenodetype>
<ie:treenode Text="Michigan" childtype="Folder">
<ie:treenode Text="Detroit"></ie:treenode>
<ie:treenode Text="Farmington"></ie:treenode>
<ie:treenode Text="Southfield"></ie:treenode>
</ie:treenode>
<ie:treenode Text="Washington">
<ie:treenode Text="Bellevue"></ie:treenode>
<ie:treenode Text="Redmond"></ie:treenode>
<ie:treenode Text="Woodinville"></ie:treenode>
</ie:treenode>
</ie:treeview>

</form>

this is the output

Michigan
Detroit
Farmington
Southfield
Washington
Bellevue
Redmond
Woodinville

i am not having the treeview output..

there is no images in that output..

i am refered many sites but i did't find the answer

please help me.

the plus symbol images how to come

i am go to click plus image to expand the treeview format output

please help ..

reply me..

Dani AI

Generated

Short summary for (and to build on ): seeing just plain node text usually means the TreeView control is rendering without its client-side resources (icons and script) or it is not being executed as an ASP.NET server control. The plus/minus images only appear when the control renders expansion UI for nodes that actually have children, but even then the images and client script must be reachable by the browser.

Troubleshooting checklist to apply now:

  • Verify the control assembly is deployed to the web app (bin or GAC) and the Register directive matches that assembly/version. If the runtime cannot load the assembly the control may not render correctly.
  • Make sure the page and control are inside a server-side form. Server controls require a form with runat="server".
  • Open the browser developer tools (Network/Console). Look for 404s or blocked requests for image files or .js files. If the tree's icon images or client scripts are missing you will get plain text.
  • Do not use local file/UNC paths for ImageUrl (file:// or \server\share). Copy the control images into the web application (for example an /images/tree/ folder) and point ImageUrl at an HTTP-relative path such as /images/tree/folder.gif.

Quick deploy steps:

  • Copy the control's image and script files from the installation folder into the web project.
  • Update the control ImageUrl properties to reference a web path (not a file:// path).
  • Recycle the app pool and reload; check Network tab for successful 200 responses for each resource.

If this is a long-lived project, consider migrating to the ASP.NET built-in TreeView (ASP.NET 2.0+) or a modern JS tree (jsTree, etc.). The IE Web Controls are old, depend on legacy browser behaviors, and are harder to deploy reliably in modern hosting environments.

Hi Thiru....
Which version r u used in u r Proj?
I think u r using VS 2003 .....
Here U add only Parent Node ..
U Should mention child Nodes....
If u add child node then u will get collapse/Expand (+) Symbol automatically.......

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.