Skip to main content
Home Forums Silverlight Programming Silverlight Controls and Silverlight Toolkit Autocomplete causing webservice to loop?
3 replies. Latest Post by moonlit_valley on June 27, 2009.
(0)
moonlit_...
Member
1 points
13 Posts
06-27-2009 8:03 AM |
Hi all, long time reader, first time poster, I have a bug in my code that I just can't pinpoint. I hope you can help. It's a silverlight Virtual Earth project.
There are no loops in my code. When debugging the whole routine is called, i.e. the debugger runs from line 1 (below) to line 5, and then returns straight to line 1. Any thoughts on this before I post the code in detail?
3. DrawPoly...
Many thanks
Drew
Ken Tucker
All-Star
16276 points
2,479 Posts
06-27-2009 11:59 AM |
The thing that comes to mind is you are adding a new event handler without removing the old one first. First time it runs 1 handler so the event runs once. The second time there are 2 handlers so the event runs twice. etc
jay nana...
Contributor
3388 points
624 Posts
06-27-2009 12:00 PM |
can you share code for selectionchanged event?
06-27-2009 2:59 PM |
Ken, you're a genius. Thanks for your help.
Jay, no problem
ServiceNameClient.ServiceNameAsync(MyAutoCompleteResult)