简体   繁体   中英

Tree view in asp.net not expanding in IE10/win 8

我正在使用Web应用程序。我的网站上有一个树视图。它是进入整个网站的主要导航工具。但是树视图在IE 10 / Win 8中没有扩展。

Refer : Microsoft.Web.UI.WebControls Treeview not rendering on some machines

Microsoft.Web.UI.WebControls.Treeview is an obsolete control.

The most likely reason why your tree control breaks is that it does not work on Windows 8/IE10.

Best option is to convert to System.Web.UI.WebControl.TreeView

Quick fix: add the following code to your Global.asax.vb.Application_EndRequest. This will force IE to load your application in compatibility mode.

Try

   Response.AddHeader("X-UA-Compatible", "IE=5")

Catch ex As Exception

End Try

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM