I have a function that does some database update in asp.net. I'd like a modal popup to show a "success" message for just 5 seconds after my function has been called. In this case, the modal popup would not be triggered by any "TargetControl" but would show up for just 5 seconds once the function is done.
Thanks
You have to manually call the show method on the panel like:
So you can use window.setTimeout to call this:
But it can't just happen very easily.
HTH.
You can't close standard javascript modal dialogs (alert, confirm,..) after a timeout. Only manual close works with them.
But, you can use jquery/UI dialog: