---
title: "Need to test an ajax timeout condition"  
description: "Need to test an ajax timeout condition"  
author: "marcel ethan"  
published: 2013-02-13  
updated: 2013-02-13  
canonical: https://www.mindstick.com/forum/597/need-to-test-an-ajax-timeout-condition  
category: "ajax"  
tags: ["ajax"]  
reading_time: 1 minute  

---

# Need to test an ajax timeout condition

Hi MindStickians!

As the [title](https://www.mindstick.com/articles/12860/how-to-get-financing-for-salvage-title-cars) mentions, I have a [timeout](https://www.mindstick.com/forum/159429/sql-query-returns-a-timeout-expired-error) [callback](https://www.mindstick.com/articles/152/using-the-callback) [handler](https://www.mindstick.com/forum/33532/handler-pagehandlerfactory-integrated-has-a-bad-module-managedpipelinehandler-in-its-module-list) on an [Ajax](https://www.mindstick.com/articles/1541/check-availability-of-user-name-or-email-using-asp-dot-net-ajax-and-jquery) call, and I want to be able to [test](https://yourviews.mindstick.com/story/1427/explosive-facts-about-trinity-test-world-s-first-nuclear-bomb) that [condition](https://www.mindstick.com/forum/12711/select-query-with-and-condition) but nothing is coming to mind

immediately on ways I can force my [application](https://www.mindstick.com/articles/12824/calculator-application-in-android) to hit that state, any [suggestions](https://www.mindstick.com/blog/299486/how-to-write-for-your-audience)?

Thanks in [advance](https://www.mindstick.com/blog/33258/jee-mains-and-jee-advance-exams)

## Replies

### Reply by AVADHESH PATEL

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);


---

Original Source: https://www.mindstick.com/forum/597/need-to-test-an-ajax-timeout-condition

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
