PdfHttpHandlerWithReadOnlySession Class |
Namespace: RadPdf.Web.HttpHandler
The PdfHttpHandlerWithReadOnlySession type exposes the following members.
Name | Description | |
---|---|---|
PdfHttpHandlerWithReadOnlySession | Initializes a new instance of the PdfHttpHandlerWithReadOnlySession class |
Name | Description | |
---|---|---|
IsReusable |
Gets a value indicating whether more than one request can use this HttpHander instance
(Inherited from PdfHttpHandlerWithoutSession.) |
Name | Description | |
---|---|---|
Equals | (Inherited from Object.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
ProcessRequest |
Enables processing of HTTP Web requests by the HttpHandler.
(Inherited from PdfHttpHandlerWithoutSession.) | |
ToString | Returns a string that represents the current object. (Inherited from Object.) |
This class and its members should only be used in a web application setup for a PdfWebControl.
This class should be used instead of PdfHttpHandler when a custom PdfIntegrationProvider is being used which only reads ASP.NET session information only. If read and write access is needed to session information, consider using PdfHttpHandlerWithSession instead. If only no access is needed to session information, consider using PdfHttpHandlerWithoutSession instead.
If PdfHttpHandlerWithReadOnlySession is the designated handler, the UpdateSession(String, PdfLiteSession) method (and other UpdateSession(String, PdfLiteSession) implementations using the ASP.NET Session object) will fail (in some cases silently).
Session information can be accessed in a custom PdfIntegrationProvider using HttpContext.Current.Session (the namespace System.Web must be referenced).
<?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.PdfHttpHandlerWithReadOnlySession"/> </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.PdfHttpHandlerWithReadOnlySession"/> </handlers> </system.webServer> </configuration>