I have a task to do the retry logic on client side automatically
As for now I am calling the webmethod using AJAX in the webmethod - calling some methods on my Business layer then it will hit the DB to execute the query.
so If any error or exception occurs on the Business layer in the catch block I am catching the boolean value true or false if the method executes it will return true else false.
I am doing the retry logic from the webmethod and the business layer. so this will hit the DB if any error occurs ie: 3 time is the Maximum retries.
But i have to do it on client side ie: i have to count it on Client Side. how ???
This is my current code.
function JMethod(EsID ) {
var s1;
var strUrl, toSend, response, splitData;
// strUrl = '<%=Request.ApplicationPath %>' + '/page1.aspx/callwebmethod1';
...
Go to the complete details ...