Last post Jul 21, 2007 02:51 PM by patil.sunil143
Mar 06, 2006 07:14 AM|garethb|LINK
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.
Mar 06, 2006 11:04 AM|dirkdeleeuw|LINK
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!
Mar 08, 2006 11:32 AM|garethb|LINK
Thanks for your time and effort.
Mar 19, 2006 09:37 AM|dahai.hao|LINK
In Windows 2003, C:\Inetpub\wwwroot\webctrl_client should be set access with EveryOne.
Mar 27, 2006 06:48 AM|sonsun|LINK
In my case my servr is a Nt Server 5.2, the nodes are showing as plain text in series. Please advice
Jul 24, 2006 06:18 PM|i.netdeveloper|LINK
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
Sep 18, 2006 03:33 PM|netcjl|LINK
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
Sep 18, 2006 03:43 PM|netcjl|LINK
Nevermind. Please ignore the stupid question.
May 03, 2007 08:11 AM|Shrikaant|LINK
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.
Jun 06, 2007 03:37 AM|samit|LINK
Thanks Dirk. I made changes & it is working.
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.
Jul 07, 2007 06:53 AM|santhji|LINK
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
ie web control
IE Web Controls
Jul 08, 2007 07:48 PM|kckriegs|LINK
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!
Jul 21, 2007 02:51 PM|patil.sunil143|LINK
I have obtaind the error in treeview.cs in command prompt.Give Me solution it works properly or not.
IE Web Controls