I was trying to use a modal dialogue..Below is the scenario
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.