Hi,
That is quite normal. The button does not really close the msgbox. It just triggers a post back. You see the msgbox closed because the page is reloaded.
If you wish to see the msgbox closing faster, you will have to separate the two actions: close the msgbox first, then do a postback, which means you have to do them with JavaScript. In order to close the msgbox on the client side, you would clear the button's CommandName property and set its ClientSideHandler. Inside your ClientSideHandler you would
delay trigger a post back:
Code: JavaScript
function msgbox_handler()
{
setTimeout(function()
{
//trigger your post back here....
.......
}, 10);
}
It is necessary to delay your post back so that the msgbox can continue to close itself after it calls your handler.
Thanks!