Click or drag to resize

PdfHttpHandler Class

Defines the contract that ASP.NET implements to synchronously process HTTP Web requests made by a PdfWebControl or PdfWebControlLite including session information.
Inheritance Hierarchy

Namespace:  RadPdf.Web.HttpHandler
Assembly:  RadPdf (in RadPdf.dll) Version: 3.19.5.0 (3.19.5.0)
Syntax
public class PdfHttpHandler : PdfHttpHandlerWithSession

The PdfHttpHandler type exposes the following members.

Constructors
  NameDescription
Public methodPdfHttpHandler
Initializes a new instance of the PdfHttpHandler class
Top
Properties
  NameDescription
Public propertyIsReusable
Gets a value indicating whether more than one request can use this HttpHander instance
(Inherited from PdfHttpHandlerWithoutSession.)
Top
Methods
  NameDescription
Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Protected methodMemberwiseClone (Inherited from Object.)
Public methodProcessRequest
Enables processing of HTTP Web requests by the HttpHandler.
(Inherited from PdfHttpHandlerWithoutSession.)
Public methodToString (Inherited from Object.)
Top
Remarks

This class and its members should only be used in a web application setup for a PdfWebControl.

This class is the same as PdfHttpHandlerWithSession. If only read access is needed to session information, consider using PdfHttpHandlerWithReadOnlySession instead. If only no access is needed to session information, consider using PdfHttpHandlerWithoutSession instead.

Session information can be accessed in a custom PdfIntegrationProvider using HttpContext.Current.Session (the namespace System.Web must be referenced).

Examples
The following sample web.config file registers the PdfHttpHandler for use in this web application which uses PdfWebControl.
XML
<?xml version="1.0"?>
<configuration>
  <appSettings>
    <add key="RadPdfConnectionString" value="Server=.\SQLExpress;Database=RadPdf;Trusted_Connection=Yes;"/>
    <add key="RadPdfLicenseKey" value="DEMO"/>
  </appSettings>
  <system.web>
    <httpHandlers>
      <add path="RadPdf.axd" verb="GET,POST" type="RadPdf.Web.HttpHandler.PdfHttpHandler"/>
    </httpHandlers>
  </system.web>
  <!--
    The system.webServer element is for use with IIS 7 (and later) when Managed Pipeline Mode is set to "Integrated".
    It will be ignored in other versions of IIS.
    -->
  <system.webServer>
    <validation validateIntegratedModeConfiguration="false"/>
    <handlers>
      <add path="RadPdf.axd" verb="GET,POST" name="PdfHttpHandler" preCondition="integratedMode" type="RadPdf.Web.HttpHandler.PdfHttpHandler"/>
    </handlers>
  </system.webServer>
</configuration>
See Also