This document is provided on an "AS IS" basis without warranties of any kind. Smartsite iXperion class libraries may change in future releases.

Syntax

C# Copy imageCopy Code
                                  public static class Utility
Visual Basic (Declaration) Copy imageCopy Code
                                  Public NotInheritable Class Utility

The type exposes the following members.

Public Methods

  Name Description
Public method Static member CombineCssClasses
Combines the given CSS classes for the class attribute.
Public method Static member ConvertCSSReferencesToXHtml
Converts the CSS references to XHtml, using 'img' tags with 'src' attributes, in order to scan the references using Xml technology.
Public method Static member GetClientVar
Gets a string that can be used as identifier of a Javascript client variable.
Public method Static member GetHtmlSelectOptions Overloaded.
Public method Static member GetMimeTypeFromFileName
Gets the name of the MIME type from a given filename.
Public method Static member GetRootPath Overloaded.
Public method Static member GetStreamBytes
Gets the stream bytes.
Public method Static member Html2Xhtml
Converts HTML to XHTML.
Public method Static member IsAspNetFileExtension
Returns true if the given File Type represents one of the Asp.Net file types.
Public method Static member IsLocalHost
Returns true if the IPaddress is one of the IP addresses of this computer.
Public method Static member IsSelfClosingHtmlTag
Returns true if a tag is supposed to be self-closing in HTML 4 or required to be self-closing in XHTML 1.0.
The complete list of self-closing tags is: area, base, basefont, br, col, frame, hr, img, input, isindex, link, meta, param.
Public method Static member IsTextualMimeType
Determines whether the given mime type represents textual data.
Public method Static member JavascriptQuote
Returns a value for Javascript, optionally quoted if needed.
Public method Static member Pipe
Tunnels data from the input to the specified output streams
Public method Static member ToJavascript Overloaded.
Public method Static member TransmitFile
Transmits the contents of the file to specified stream.
Public method Static member TryParseGmtDate
Tries to parse the gmt DateTime.

Public Fields

  Name Description
Public field Static member ContentTypeApplicationOctetStream
Represents the content type application/octet-stream.
Public field Static member ContentTypeApplicationPdf
Represents the content type application/pdf.

See Also

Advanced