Welcome Guest Search | Active Topics | Sign In | Register

Dialog Close Server Event Options
Phillip Zedalis
Posted: Sunday, July 29, 2007 8:15:53 PM
Rank: Newbie
Groups: Member

Joined: 7/28/2007
Posts: 8
First off let me say that I just bought your controls. The collection was exactly what I was looking for at an excellent value. Your site is also very nice and thorough, helped build trust!

I maybe missing something easy, but is there a server side event for when the dialog is closed with the top right button?

Thanks.

Phillip
eo_support
Posted: Sunday, July 29, 2007 10:12:58 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,217
Hi Philip,

Thanks for your business! We are very happy to hear that you like our product.

As for your question, there isn't a server side event when the dialog is closed. However we have a client side event for that and you can easily using this client side event to trigger a server side event.

To implement that, first you would need to handle ClientSideOnEnd event:

http://www.essentialobjects.com/ViewDoc.aspx?t=EO.Web.Dialog.ClientSideOnEnd.html

Inside that event handler, you can use one of the following two ways to trigger a server side event:

1. Call __doPostBack client side function. This function is rendered on every ASP.NET page and is used by many server controls (a LinkButton, for example) to trigger server side event. For example, you can put a LinkButton into the page, run the page and the view page source to find out what it calls when clicked. You can then copy that code into your client side event handler, which will be called when the dialog closes. This in turn calls the code you copied in and triggers the LinkButton's click event as if the link button itself was really clicked;

2. Use a Callback control. You can put a Callback control in the form, then call eo_Callback from client side to trigger the callback.

http://www.essentialobjects.com/ViewDoc.aspx?t=JSDoc.Public.Global.eo_Callback.html

This will trigger the server side Callback_Execute event:

http://www.essentialobjects.com/ViewDoc.aspx?t=EO.Web.Callback.Execute.html

Please feel free to let us know if you have any other questions.

Thanks
Phillip Zedalis
Posted: Sunday, July 29, 2007 10:51:58 PM
Rank: Newbie
Groups: Member

Joined: 7/28/2007
Posts: 8
Thanks! Took me a minute, but you pointed me in the right direction.


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.