Class WebUtils
  
  
  
  
    Inheritance
    System.Object
    WebUtils
   
  
  Assembly: FastReport.Web.dll
  Syntax
  
    public static class WebUtils
   
  Fields
  
  HandlerFileName
  Contain the filename of httphandler
 
  
  Declaration
  
    public const string HandlerFileName = "FastReport.Export.axd"
   
  Field Value
  
    
      
        | Type | 
        Description | 
      
    
    
      
        | System.String | 
         | 
      
    
  
  Methods
  
  
  AddHandlers(String)
  Add http handlers in web.config
 
  
  Declaration
  
    public static void AddHandlers(string webConfigFile)
   
  Parameters
  
    
      
        | Type | 
        Name | 
        Description | 
      
    
    
      
        | System.String | 
        webConfigFile | 
         | 
      
    
  
  
  
  Add NoCache haders in Context.Reponse
 
  
  Declaration
  
    public static void AddNoCacheHeaders(HttpContext context)
   
  Parameters
  
    
      
        | Type | 
        Name | 
        Description | 
      
    
    
      
        | System.Web.HttpContext | 
        context | 
         | 
      
    
  
  
  CheckHandlers()
  Check http handlers in web.config
 
  
  Declaration
  
    public static bool CheckHandlers()
   
  Returns
  
    
      
        | Type | 
        Description | 
      
    
    
      
        | System.Boolean | 
         | 
      
    
  
  
  CheckHandlersRuntime()
  
  
  Declaration
  
    public static void CheckHandlersRuntime()
   
  
  GetGUID()
  
  
  Declaration
  
    public static string GetGUID()
   
  Returns
  
    
      
        | Type | 
        Description | 
      
    
    
      
        | System.String | 
         | 
      
    
  
  
  GetGUID(HttpContext, String)
  
  
  Declaration
  
    public static string GetGUID(HttpContext context, string id)
   
  Parameters
  
    
      
        | Type | 
        Name | 
        Description | 
      
    
    
      
        | System.Web.HttpContext | 
        context | 
         | 
      
      
        | System.String | 
        id | 
         | 
      
    
  
  Returns
  
    
      
        | Type | 
        Description | 
      
    
    
      
        | System.String | 
         | 
      
    
  
  
  GetHandlerError()
  
  
  Declaration
  
    public static string GetHandlerError()
   
  Returns
  
    
      
        | Type | 
        Description | 
      
    
    
      
        | System.String | 
         | 
      
    
  
  
  HTMLColor(Color)
  Returns the HTML color representation;
 
  
  Declaration
  
    public static string HTMLColor(Color color)
   
  Parameters
  
    
      
        | Type | 
        Name | 
        Description | 
      
    
    
      
        | System.Drawing.Color | 
        color | 
         | 
      
    
  
  Returns
  
    
      
        | Type | 
        Description | 
      
    
    
      
        | System.String | 
         | 
      
    
  
  
  IsAbsolutePhysicalPath(String)
  Determines whether the path is an absolute physical path.
 
  
  Declaration
  
    public static bool IsAbsolutePhysicalPath(string path)
   
  Parameters
  
    
      
        | Type | 
        Name | 
        Description | 
      
    
    
      
        | System.String | 
        path | 
        The path to check. 
 | 
      
    
  
  Returns
  
    
      
        | Type | 
        Description | 
      
    
    
      
        | System.Boolean | 
        true if the path is absolute physical path. 
 | 
      
    
  
  
  IsIE8(HttpContext)
  IE8 and older browsers detection.
 
  
  Declaration
  
    public static bool IsIE8(HttpContext context)
   
  Parameters
  
    
      
        | Type | 
        Name | 
        Description | 
      
    
    
      
        | System.Web.HttpContext | 
        context | 
         | 
      
    
  
  Returns
  
    
      
        | Type | 
        Description | 
      
    
    
      
        | System.Boolean | 
         | 
      
    
  
  
  ReverseString(String)
  
  
  Declaration
  
    public static string ReverseString(string str)
   
  Parameters
  
    
      
        | Type | 
        Name | 
        Description | 
      
    
    
      
        | System.String | 
        str | 
         | 
      
    
  
  Returns
  
    
      
        | Type | 
        Description | 
      
    
    
      
        | System.String | 
         | 
      
    
  
  
  RGBAColor(Color)
  Converts Color in HTML format with transparency.
 
  
  Declaration
  
    public static string RGBAColor(Color color)
   
  Parameters
  
    
      
        | Type | 
        Name | 
        Description | 
      
    
    
      
        | System.Drawing.Color | 
        color | 
         | 
      
    
  
  Returns
  
    
      
        | Type | 
        Description | 
      
    
    
      
        | System.String | 
         | 
      
    
  
  
  ToHtmlString(Unit)
  
  
  Declaration
  
    public static string ToHtmlString(Unit unit)
   
  Parameters
  
    
      
        | Type | 
        Name | 
        Description | 
      
    
    
      
        | System.Web.UI.WebControls.Unit | 
        unit | 
         | 
      
    
  
  Returns
  
    
      
        | Type | 
        Description | 
      
    
    
      
        | System.String | 
         |