Hello,
thank you very much for your code. It's exactly what I needed!
I take advantage from your answer to ask you another question: I want to delete a feature clicking on. The process is managed in the code-behind, in the event Click of the map. But I want to open a popup, or a javascript Confirm("Do you really want to delete the feature") for the user before the postback.
So here is what I want: I click on the feature, a popup appears to ask if the user confirms, and in the code-behind, the feature is deleted only if the user has confirmed.
Have you any way to do that?
Thank you again!
Andre