AjaxRequestExtensions.IsAjaxRequest Method (HttpRequestBase)
Determines whether the specified HTTP request is an AJAX request.
Assembly: System.Web.Mvc (in System.Web.Mvc.dll)
Parameters
- request
-
Type:
System.Web.HttpRequestBase
The HTTP request.
Return Value
Type: System.Booleantrue if the specified HTTP request is an AJAX request; otherwise, false.
| Exception | Condition |
|---|---|
| ArgumentNullException | The request parameter is null (Nothing in Visual Basic). |
Show: