Developer Resources for AbleCommerce eCommerce platform
CommerceBuilder.Utility Namespace / HttpContextHelper Class / SafeGetRequest Method / SafeGetRequest(HttpContext) Method
The HttpContext to retreive the request from.
In This Topic
    SafeGetRequest(HttpContext) Method
    In This Topic
    Gets the HttpRequest associated with the given context.
    Syntax
    public static HttpRequest SafeGetRequest( 
       HttpContext context
    )

    Parameters

    context
    The HttpContext to retreive the request from.

    Return Value

    The HttpRequest object, or null if it is not available in this context.
    Remarks
    In II7 in integrated pipeline mode, accessing request will throw an exception during application level events (like AbleCommerceHttpModule.Init).
    Requirements

    Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also