Hi,
In that case you should use a regular button instead of "AcceptButton". A regular button is just a button or whatever you placed insided the dialog. The only relationship between the button and the dialog is it sits inside the dialog. You can enable/disable it as you wish and it would has nothing to do with the dialog. If the button is a server side asp:Button, then clicking the button automatically posts back the page, thus closing the dialog. If the button is a HTML button, then you will need to handle the button's click event with JavaScript. Inside the event handler you can close the dialog with the following code:
Code: JavaScript
eo_GetObject("Dialog1").close();
An “accept button” is slightly different. The dialog will automatically intercept the accept button’s click event and close the dialog when the button is clicked. You would specify an accept button by setting the dialog’s AcceptButton property to the ID of the button.
Thanks!