Rank: Member Groups: Member
Joined: 5/6/2008 Posts: 21
|
Hi,
I have a page: page1.ascx this page contains a Dropdownlist: dropdownlist1, from this page i show a dialog: dial1 this dialog contains page2.aspx inside, i need to do dropdownlist1.databind() when the dialog closes, my question is how can i raise server event in page1.ascx when dialog closes.
Excuse my english
Thank u very much.
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Hi,
There are a number of ways to do that, none of it is directly related/provided by the dialog at all.
If you use a button to close the dialog, then just handle that button's Click event. Make sure you clear the dialog's AcceptButton or CancelButton property so that the button is not in anyway associated to the dialog.
You can also handle the dialog's close event via ClientSideOnEnd handler. Inside that handler you can do whatever needed to raises server side event with JavaScript. If you are not sure how to do that, you can create a blank page and place a LinkButton inside that page, run the page and view page source to see what JavaScript code the LinkButton calls when it is clicked.
Another option is to use our ScriptEvent control. The ScriptEvent control is a new control in EO.Web Controls Suite 2009 that helps you to raises server event from JavaScript. You will need to download and install the new version to use that control.
Hope this helps.
Thanks!
|