Is this all you need to add to the "Click" event? or is there more code you need to add?
I have a DynamicMapService, that i need to query with a mouse click event, and have an InfoWindow showing the results, do i need to write a query in the click event, or will the code you posted suffice?
i can´t use the layer(s) as a featurelayer, becouse i need it to have the symbols provided from the map service.