Click or drag to resize
RequestHelperIsAJAXRequest Method
Returns true if current request contains "x-microsoftajax" header item or "XMLHttpRequest" value.

Namespace: CMS.Helpers
Assembly: CMS.Helpers (in CMS.Helpers.dll) Version: 13.0.131
Syntax
C#
public static bool IsAJAXRequest()

Return Value

Type: Boolean
Remarks

HttpMethod value is irrelevant. This method can return true even for GET request.

If you need to detect asynchronous postback caused by [!:ScriptManager] use [!:ScriptManager.IsInAsyncPostBack].

See Also