Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

I have a bunch of inherited EditorServerCommandActions in my WebADF solution and when ever I use the ReturnMessage inside EditorServerAction() it generates two javascript popups at the clientside.

Is this a common know error or am I simply missing something?

public class CustomCommandAction : EditorServerCommandAction
{
    protected override void EditorServerAction()
    {
        ReturnMessage("Foo");
    }
}
share|improve this question
    
What version of ArcGIS? –  Kirk Kuykendall Sep 13 '10 at 13:04
    
It's runing at v. 9.3.1 –  cyberzed Sep 17 '10 at 21:59
add comment

1 Answer

I know this might sound obvious, but is something calling that routine twice? If you set a break point at ReturnMessage is it hit twice? If so, you could dig into where it is coming from. Perhaps there is more than one instance of the CustomCommandAction somehow.

share|improve this answer
    
I took a peek at EditorServerCommandAction in Reflector, and the ServerAction(ToolbarItemInfo) method calls ReturnMessage. –  Adam Armour Sep 13 '10 at 15:29
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.