Page view counter

treeview not displaying properly

Last post 07-21-2007 2:51 PM by patil.sunil143. 12 replies.

Sort Posts:

  • treeview not displaying properly

    03-06-2006, 7:14 AM
    • Loading...
    • garethb
    • Joined on 02-01-2005, 6:43 AM
    • Posts 26
    • Points 130

    Hello.
    I have developed a site using the treeview control included with microsoft ie web controls dll.

    My problem is that the site displays perfect when i view it from the localhost(directly on the server), but when i try to access it externally it only displays lines of text, with no treeview formatting.

    Is their something obvious i am missing here.

    Thanks
    Gareth.


  • Re: treeview not displaying properly

    03-06-2006, 11:04 AM
    • Loading...
    • dirkdeleeuw
    • Joined on 03-05-2006, 5:18 AM
    • Posts 2
    • Points 10

    Hi Gareth,

    I had the same issue when I installed my website on a W2k and a W2003 server last friday. Over the weekend I found out that by looking at the html on the client machine that it refers the htc file in the root directory ( inetput\wwwroot). Just open your page and use View => Source in the internet explorer. Search for htc and you will see a line like this:

    <?IMPORT NAMESPACE=TVNS IMPLEMENTATION="/webctrl_client/1_0/treeview.htc" />

    You should have the source code from Microsoft, so a quick search in the source code directory will show you that they set that the location for the treeview in the file treeview.cs. Just open the source file and go to line 1256 or search for htc.( for the other controls, just find the corresponding source file)

    Make the following change to that line.

    output.Write("<?XML:NAMESPACE PREFIX=TVNS />\n<?IMPORT NAMESPACE=TVNS IMPLEMENTATION=\""

    + Page.Request.ApplicationPath + AddPathToFilename("treeview.htc") + "\" />");

    Do the same for the line where the set the location for the images.

    output.AddAttribute("systemImagesPath", Page.Request.ApplicationPath + SystemImagesPath);

    Recompile the code using the build batch file and copy the new dll over to the bin directory of you website.

    Copy the webctrl_client directory over from c:\inetpub\wwwroot the root of your website c:\inetpub\wwwroot\mywebsite.

    Hope that helps!

    Dirk

     

     

  • Re: treeview not displaying properly

    03-08-2006, 11:32 AM
    • Loading...
    • garethb
    • Joined on 02-01-2005, 6:43 AM
    • Posts 26
    • Points 130

    Perfect solution.

    Thanks for your time and effort.

    Gareth.

  • Re: treeview not displaying properly

    03-19-2006, 9:37 AM
    • Loading...
    • dahai.hao
    • Joined on 03-19-2006, 4:37 AM
    • Posts 2
    • Points 10

    Hello.

          In Windows 2003, C:\Inetpub\wwwroot\webctrl_client should be set access with EveryOne.

     

    dahai.

  • Re: treeview not displaying properly

    03-27-2006, 6:48 AM
    • Loading...
    • sonsun
    • Joined on 03-27-2006, 11:40 AM
    • Posts 1
    • Points 5

    In my case my servr is a Nt Server 5.2, the nodes are showing as plain text in series. Please advice

  • Re: treeview not displaying properly

    07-24-2006, 6:18 PM

    Thanks for the advice. It really helped me.

    I just saw the view source of the code and I was suprised as it was pointing to a treeview.htc in the treeviewimages folder, so I copied the treeview.htc and placed there.

    Then it started working.

    Thanks a lot

     

     

  • Re: treeview not displaying properly

    09-18-2006, 3:33 PM
    • Loading...
    • netcjl
    • Joined on 09-18-2006, 7:29 PM
    • Posts 2
    • Points 10

    When I run the build batch file I get the following error:

    'csc.exe' is not is not recognized as an internal or external command, operable program or batch file. 42 file(s) copied.

    What am I missing?

     

    Thanks in advance

  • Re: treeview not displaying properly

    09-18-2006, 3:43 PM
    • Loading...
    • netcjl
    • Joined on 09-18-2006, 7:29 PM
    • Posts 2
    • Points 10

    Nevermind. Please ignore the stupid question.

     

    Thanks

  • Re: treeview not displaying properly

    05-03-2007, 8:11 AM
    • Loading...
    • Shrikaant
    • Joined on 12-18-2006, 3:51 AM
    • Posts 147
    • Points 167

    Hi, I have a the same tree control But it loads the page for every event .I tried your funda also but it dint work.

    Can you please help me.

     

  • Re: treeview not displaying properly

    06-06-2007, 3:37 AM
    • Loading...
    • samit
    • Joined on 05-21-2007, 10:47 AM
    • Posts 2
    • Points 4

    Thanks Dirk.  I made changes & it is working.

     One thing i noticed that it is adding extra charchter "." so i removed that by

    Page.Request.ApplicationPath + SystemImagesPath.Remove(0,1)

    Thanks again Dirk for providing solution of one of the common problem in IE web controls. I am expecting this solution in the microsoft site but not found. Hope that microsoft include this solution in there site.

  • Reg: Dyanmic treeview using xml

    07-07-2007, 6:53 AM
    • Loading...
    • santhji
    • Joined on 06-18-2007, 1:47 PM
    • Posts 1
    • Points 2

    Hi

             I want to use in dynamic tree view using XML(Asp.net 2.0), And retring the data in Sql sever 2ooo. If i have to change in database means,  its automatically reflict the Xml ->Tree view

    TreeView-> XML -> Sqlserver 2000....

    Give me the solution . How to Create and Retrive form Sql server 2000 .

    And also iewc 2.0 setup -> Give me the Link

     

  • Re: Reg: Dyanmic treeview using xml

    07-08-2007, 7:48 PM
    • Loading...
    • kckriegs
    • Joined on 08-15-2005, 7:55 PM
    • Posts 435
    • Points 2,024

    The iewc setup for asp.net 2.0 is the same as it is for asp.net 1.1. Here's a link for installation . You may be better off using the treeview component that comes with vs.net 2005. Serializing XML from SQL and plugging the source into the treeview component is more straightforward; less knowledge of XSLT required. Good luck!

  • Re:error at the time of installation of ie web control in VS Command prompt

    07-21-2007, 2:51 PM

    I have obtaind the error in treeview.cs in command prompt.Give Me solution it works properly or not.

    Filed under:
Page 1 of 1 (13 items)