I have a general UI question, not tied to any particular technology. I'm working on an application where users create orders. Later if they feel like it, they can cancel some or all of those orders. If they do, they get a dialog prompting them for a reason they are canceling, and two buttons -- Submit and Cancel. That is, as far as that dialog is concerned, Submit means to really cancel, and Cancel means to cancel the cancel. I hate this. Is there a better way to handle it?
You're right, that's horrible. Something like "Are you sure you want to cancel? Yes/No" would be an improvement, though there may well be something better. But there's no excuse for having a confirmation dialog with an ambiguous answer.