The table of contents cannot toggle the visibility of a graphicslayer.
上次发布: August 25, 2014No 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 { } }