laptop and a wrench

Bogue

ColorPickers ChosenColor element client ID for client side code differs from server side.

Dernière publication: August 25, 2014 ArcGIS Server (.NET)
Numéro d’ID de bogue NIM050364
EnvoiOctober 28, 2009
Dernière modificationJune 5, 2024
S’applique àArcGIS Server (.NET)
Version trouvée9.3.1
Système d’exploitationWindows OS
Version du système d’exploitationXP
StatutNon-Reproducible

Informations supplémentaires

No Public Explanation

Solution de contournement

This is not a bug but the intended control-naming design in ASP.NET.The reason for the appended ColorPickerPlus_ at client-side is done to ensure the uniqueness of the clientId of nested controls. Here are a couple of articles that go over this topic and discuss why client-side and server-side ids vary and how server-side ids could be passed to javascript:http://msdn.microsoft.com/en-us/library/1d04y8ss%28v=VS.100%29.aspxhttp://forums.asp.net/t/928744.aspxhttp://encosia.com/2007/08/08/robust-aspnet-control-referencing-in-javascript/http://stackoverflow.com/questions/1362338/how-do-i-pass-a-server-controls-actual-client-id-to-a-javascript-functionhttp://forums.asp.net/t/1395232.aspxPlease find attached the sample ColorPickerBug_Solution.zip provided in Nimbus, which now has two ways of accessing client-side controls via javascript, where clientids are passed via ScriptManager or direct onclick attribute assignment. This sample should answer the question for the customer.

Étapes pour reproduire

ID de bogue: NIM050364

Logiciel:

  • ArcGIS Server (.NET)

Recevoir une notification lorsque le statut d’un bogue change

Télécharger l’application Esri Support

En savoir plus sur ce sujet

Obtenir de l’aide auprès des experts ArcGIS

Contacter le support technique

Télécharger l’application Esri Support

Accéder aux options de téléchargement