I was trying to use a modal dialogue..Below is the scenario
<script type="text/javascript">
function OnClicked() {
var waitDialog = SP.UI.ModalDialog.showWaitScreenWithNoClose("Retrieving Information", "Please wait while the information is being gathered. This may take some time.", 80, 300);
}
I have this java script function and then on the button click
<asp:Button ID="btnGetSoftwareList" runat="server" OnClientClick="OnClicked()" OnCommand="SoftwareList_Click" Text="Retrieve Software List" />
So on client click it opens the modal and then goes to the server side code and then it also closes it automatically when the button code is complete..The problem is that after the button is pressed it takes some time to reach the code behind button click event. Can i control this in some way.