Welcome Guest Search | Active Topics | Sign In | Register

dialog, running server side code then closing with a button click Options
brad smith
Posted: Thursday, June 21, 2007 2:33:17 PM
Rank: Newbie
Groups: Member

Joined: 6/19/2007
Posts: 4
I have a dialog from which I want to be able to run server side code to execute some database changes, then close the dialog. Can this be done with a single button click? I've been through the forum and the samples -- but can't find something similar.


Thanks,

Brad Smith



eo_support
Posted: Thursday, June 21, 2007 5:53:11 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,098
Hi Brad,

For that you will need to use a CallbackPanel control. It really has nothing to do with the dialog. So the questions are really two questions:

1. How to run server side code from client side;
2. How to close the dialog;

For the first question you can go over the CallbackPanel and you will see that's exactly what is for. For the second one you can do eo_GetObject("your_dialog_id").close();

Thanks


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.