I have a ajax.cs class and I am calling methods from javascript side. So for this I registered it on default.aspx page load like this.

```
Ajax.Utility.RegisterTypeForAjax(typeof(ajax));

```

Sometimes some methods taking a long time, At that time I want to abort this call. How can I abort this request?

I call method like this from js;

```
ajax.testMethod()

```