Click here to Skip to main content
15,886,258 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Dear Frnds,

I have one problem in asp .net with c#. when i click Search button 1st time its execute fine.. Again 2nd time i click search button, page progressing icon is loading didn't stop. what is the problem




Thanks & Regards
Vivek.
Posted
Comments
Vivek.anand34 23-Aug-15 7:57am    
this is my progressing JS code:

function ShowProgress() {
setTimeout(function () {
var modal = $('<div />');
modal.addClass("modal");
$('body').append(modal);
var loading = $(".loading");
loading.show();
var top = Math.max($(window).height() / 2 - loading[0].offsetHeight / 2, 0);
var left = Math.max($(window).width() / 2 - loading[0].offsetWidth / 2, 0);
loading.css({ top: top, left: left });
}, 200);
}
$('form').live("submit", function () {
ShowProgress();
});

Code:
<div class="loading" align="center">
Loading. Please wait.
<img src="Images/loader.gif" alt="" />
</div>
Vivek.anand34 23-Aug-15 7:58am    
but this 2nd time search button click event only problem..
[no name] 23-Aug-15 8:07am    
I believe you are using postback to search button. Please make sure whatever available/set(session, other values) for 1st it should available for after search button process finish. Put a debugger point near search button and check which one is taking time.
Vivek.anand34 23-Aug-15 9:29am    
actualy my concept: when i click search btn. it display modal popup and give input in tat click 'Ok' then display values below table in that same modal popup box..
Vivek.anand34 23-Aug-15 9:38am    
Found 1 solution but how to resolve i dont knw. pls help me.. actually save, update, cancel,search buttons. when i click save,update rise modal popup. but not in cancel button. when i click cancel button and then click search button. tat processing problem arise..

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900