Hello,
I seem to be having a problem with ContextMenuItems with server-side events. I have a class that dynamically adds markers to a SimpleMarker layer when a user clicks a (server side) button on my page. This works great. I then decided to add a ContextMenu as the markers are added. This also works fine. The hitch comes when I try to add a server side event to a menu item. After the marker or markers with this menu item are added to the map, I can no longer perform postbacks to my page, and upon trying to do so, I recieve an error:
Message: Sys.WebForms.PageRequestManagerServerErrorException: Error binding to target method.
Line: 4723
Char: 21
Code: 0
URI: localhost:51344/ScriptResource.axd?d=w7IICo611mRry5nbgRZFnGOk8iJV5KdaHqCXW6Hhg0ncPUNV9u3Un-USZKKZMP1Pf3MtdaGPfkzVMScZx6dQBjx-Y4TaKwqYyqLTU-ilmsM1&t=ffffffffb504ae9a
I followed the example given for adding context menus, but I wasn't sure if I was messing something up since I'm adding them dynamically. Thanks for the help!
-Dustin