show loading image while modalwindow opens, javascript
<p>I've a modal dialog which shows an aspx page on load.
my aspx page_load contains heavy DB operation to fill a dataset.
Now, the modal dialog doesn't open at all until the dataset is completely loaded, is it possible to show a loading image before modal dialog opens and close the image once the dialog is open.</p>

<p>can any one help here.</p>
