Hi,
Both are normal. The basic rule at here is if you let the dialog to be updated on the server side (by placing it inside CallbackPanel or UpdatePanel), it will reloaded and you will see it flicker.
The solution is quite simple. Just remove the CallbackPanel from the main page (so that the dialog is NOT inside the CallbackPanel) and the
close the dialog with JavaScript. Use the following steps to close the dialog with JavaScript:
1. Place the CallbackPanel inside the dialog (So that you will
not be able to close the dialog with "Me.DlgCredential.InitialState = EO.Web.DialogState.Hidden");
2. Place a Label
inside the CallbackPanel;
3. Assign the following value to the Label's Text when you want to close the dialog:
"<script type='text/javascript'>eo_GetObject('DlgCredential').close();</script>"
This renders a piece of JavaScript code to the client side and calls our client side JavaScript API to close the dialog.
You may want to go over this topic if you are not faimilar with our client side JavaScript interface:
http://doc.essentialobjects.com/library/1/clientapi_howto.aspxAs for ContentTemplate and FooterTemplate, the rule is in order for a control to be set as a trigger, the control must be in the same NamingContainer as the CallbackPanel. ContentTemplate and FooterTemplate defines two different naming containers. The workaround is once again using JavaScript:
http://doc.essentialobjects.com/library/1/jsdoc.public.global.eo_callback.aspxYou can use this function to trigger a Callback from anywhere without explicitly using a trigger control. Note without a trigger control, you will not have the server side trigger control event (for example, your Button Click event) either. So you will need to have additional code to check whether it is a Callback on the server side and acts accordingly.
On the other hand, you do not have to use FooterTemplate at all. Anything you can put in FooterTemplate can be placed in ContentTemplate and some simple HTML tweaking can make them look the same. So I do not believe you must put the OK button inside FooterTemplate.
Hope this helps.
Thanks!