Home > DeveloperSection > Forums > Need to test an ajax timeout condition
marcel ethan
marcel ethan

Total Post:105

Points:735
Posted on    February-13-2013 1:18 AM

 AJAX AJAX 
Ratings:


 1 Reply(s)
 1568  View(s)
Rate this:

Hi MindStickians!

As the title mentions, I have a timeout callback handler on an Ajax call, and I want to be able to test that condition but nothing is coming to mind

immediately on ways I can force my application to hit that state, any suggestions?

Thanks in advance 



AVADHESH PATEL

Total Post:604

Points:4228
Posted on    February-13-2013 8:02 AM

Hi Marcel!

If you want to have the server-side code take a long time and you are using .NET, place below line od code in the method you call server-side:

System.Threading.Thread.Sleep(timeoutMilliseconds);


Don't want to miss updates? Please click the below button!

Follow MindStick