AjaxRequestExtensions.IsAjaxRequest Method (HttpRequestBase)

 

Determines whether the specified HTTP request is an AJAX request.

Namespace:   System.Web.Mvc
Assembly:  System.Web.Mvc (in System.Web.Mvc.dll)

static member IsAjaxRequest : 
        request:HttpRequestBase -> bool

Parameters

request
Type: System.Web.HttpRequestBase

The HTTP request.

Return Value

Type: System.Boolean

true if the specified HTTP request is an AJAX request; otherwise, false.

Exception Condition
ArgumentNullException

The request parameter is null (Nothing in Visual Basic).

Return to top
Show: