laptop and a wrench

漏洞

The table of contents cannot toggle the visibility of a graphicslayer.

上次发布: August 25, 2014 No Product Found
漏洞 ID 编号 NIM011133
已提交August 21, 2007
上次修改时间June 5, 2024
适用范围No Product Found
找到的版本9.2
编程语言C#
修正版本9.3
状态Fixed

解决办法

THe workaround listed below works, but does require the user to zoomin/out or interact with the map in some manner after unchecking the box, so its not really a valid workaround. Another workaround would be to disable the checkbox next to the graphics datatable. The workaround is to turn off the alert window by commenting out the code in JavaScript. And then put code in Toc1_NodeChecked event. Please follow the steps.1. Set UseDefaultWebResources property of all ADF web controls as false.2. Open display_dotnetadf.js in the folder <a href="file:C:/Inetpub/wwwroot/aspnet_client/ESRI/WebADF/JavaScript" target="_blank">C:\Inetpub\wwwroot\aspnet_client\ESRI\WebADF\JavaScript</a>3. Comment out this line of code:alert("An unhandled exception has occurred:" + argument);4. Put the server side code into Toc1_NodeChecked event, such as: protected void Toc1_NodeChecked(object sender, ESRI.ArcGIS.ADF.Web.UI.WebControls.TreeViewPlusNodeEventArgs args) { if (Toc1.Nodes[0].Nodes[0].Checked) { //to do } else { } }

重现步骤

漏洞 ID: NIM011133

软件:

  • No Product Found

当漏洞状态发生变化时获得通知

下载 Esri 支持应用程序

发现关于本主题的更多内容

获取来自 ArcGIS 专家的帮助

联系技术支持部门

下载 Esri 支持应用程序

转至下载选项