My page has a ModalPopupExtender which will show the progress panel whenever postback event occurred.
But the first time button click event Cannot be fired.
Am I missing some events in the JS? Kindly adivise.
Below is my JS to invoke the progress panel.
<script type="text/javascript">
Sys.Net.WebRequestManager.add_invokingRequest(onInvoke);
Sys.Net.WebRequestManager.add_completedRequest(onComplete);
function onInvoke(sender, args)
{
$find('<%= mpeProgress.ClientID %>').show();
}
function onComplete(sender, args)
{
$find('<%= mpeProgress.ClientID %>').hide();
}
function pageUnload()
{
Sys.Net.WebRequestManager.remove_invokingRequest(onInvoke);
Sys.Net.WebRequestManager.remove_completedRequest(onComplete);
...
Go to the complete details ...