UniqueTemporaryFilesImageHandler Class
The image handler used when you select TImageExportMode.UniqueTemporaryFiles
Remarks
To use this handler, include the following lines in a Web.config file. <configuration> <system.web> <httpHandlers> <add verb="*" path="flexcelviewer.ashx" type="FlexCel.AspNet.UniqueTemporaryFilesImageHandler,FlexCel.AspNet"/> </httpHandlers> </system.web> </configuration> You might need to change the name "flexcelviewer.ashx" if you change FlexCelAspViewer.ImageHandlerName. Both names need to be the same.
Note that this handler requires authentication in order to display the images. If you want to have a handler that does not require authentication, you can derive a class from this one, and override the FlexCelHtmlImageHandler.RequiresAuthentication property to return false. After that, register this new class in web.config instead of this one.
Syntax
Namespace: FlexCel.AspNet
public class UniqueTemporaryFilesImageHandler: FlexCelHtmlImageHandler
Methods
Name | Description |
---|---|
ValidateParameters | This method will validate the image passed is a valid GUID. |
ImageExists | This method checks if the image still exists, and return false if it doesn't. |
GetImage | This method returns the image from the file. |