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

    Parameters

    context
    The HttpContext to retreive the response from.

    Return Value

    The HttpResponse object, or null if it is not available in this context.
    Remarks
    In II7 in integrated pipeline mode, accessing response 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