Show / Hide Table of Contents

    Class HttpRequestExtensions

    Extends Microsoft.AspNetCore.Http.HttpRequest with a method to determine whether the request was initiated using AJAX.
    Inheritance
    Object
    HttpRequestExtensions
    Namespace: XploRe.AspNetCore.Mvc
    Assembly: XploRe.AspNetCore.Mvc.dll
    Syntax
    public static class HttpRequestExtensions : Object

    Methods

    Name Description
    IsAjax(HttpRequest) Verifies whether the request has been initiated via AJAX by checking whether the "X-Requested-With" header is set to "XMLHttpRequest".
    Back to top Copyright © 2017-2018, xplo.re IT Services, Michael Maier. All rights reserved.