maintain a dialogbox state when passing info

maintain a dialogbox state when passing info

I have a form in a dialog and I want the message (returning from the server, after filling out the form) to display in a dialog box as well . do you know how this can be done?