Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

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)

public static bool IsAjaxRequest(
	this HttpRequestBase request
)

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:
© 2015 Microsoft