Nevron .NET Vision
Nevron.UI.WebForm.Controls Namespace / NImageResponseHttpHandler Class / CreateZeroImage Method
An HttpContext object that provides references to the intrinsic server objects (for example, Request, Response, Session, and Server) used to service HTTP requests.


In This Topic
    CreateZeroImage Method
    In This Topic
    Creates an image with size 1x1 to be used as a response in case that the session state of the web control being rendered has been expired and thus no meaningful image can be produced.
    Syntax
    'Declaration
     
    
    Protected Sub CreateZeroImage( _
       ByVal context As System.Web.HttpContext _
    ) 
    'Usage
     
    
    Dim instance As NImageResponseHttpHandler
    Dim context As System.Web.HttpContext
     
    instance.CreateZeroImage(context)
    protected void CreateZeroImage( 
       System.Web.HttpContext context
    )

    Parameters

    context
    An HttpContext object that provides references to the intrinsic server objects (for example, Request, Response, Session, and Server) used to service HTTP requests.
    Remarks
    The zero image has size 1x1 because no image with size 0x0 can be created. The zero image is used to signal the client side JavaScript AJAX framework that the web-control must be refreshed and web-control's session state must be recreated.
    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