Home All Groups Group Topic Archive Search About

TreeView web control not displaying

Author
21 Feb 2006 11:05 AM
Hass
Hi,
I have developed a ASP.NET application that uses the treeview web control.
The application works fine on most machines but on a random few the control
fails to display at all. All I get is an empty frame. I have checked all the
browser settings and they are exactly the same. Does anyone know what could
be causing this?

Author
22 Feb 2006 2:24 AM
Steven Cheng[MSFT]
Hi Hass,

Welcome to the ASP.NET newsgroup.

From your description, I understand you're using the ASP.NET 2.0 TreeView
control in your web application. The web pages contain the TreeView control
work well on some client machines but not display on some other
ones(display empty content), correct?

Based on my experience, such problem is usually caused by the client
machine's browser setting. For ASP.NET 2.0 webcontrols, most of them will
render their html content (and scripts) according to the client-side
browser capability and the capability is determined by the http "useragent"
header by default.  Therefore, I suggest you test through the following
steps:

1. Visit the page(using the TreeView control) from both machines(correct
and problem one) and use some trace tool or use the client browser's "view
source" function to capture the page's html content. Compare them to see
whether the rendered html content is the same with both machines. If the
content does differ from each other, that means the server-side page did
send different content to the different clients.

2. In addition to compare the html content, you can use some http trace
tools (like tcp trace, proxy trace...) to capture the whole http message
from both client machines and check the "useragent" http header sent by
them.  If the "useragent" headers are different, we can confirm it is the
client-side browser cause the problem.

If you have any other finding, please feel free to post here also.

Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)