Method | Description | |
---|---|---|
BytesToString ( long bytes ) : string |
Converts a byte number into a string, formatted using KB, MB or GB.
|
|
ComputeSecurityHash ( string username, string email, System.DateTime dateTime ) : string |
Computes the Hash of a Username, mixing it with other data, in order to avoid illegal Account activations.
|
|
DetectCurrentFullName ( ) : string |
Detects the full name of the current page using the Page and NS parameters in the query string.
|
|
DetectCurrentNamespace ( ) : string |
Detects the name of the current namespace using the NS parameter in the query string.
|
|
DetectCurrentNamespaceInfo ( ) : NamespaceInfo |
Detects the correct T:NamespaceInfo object associated to the current namespace using the NS parameter in the query string.
|
|
DetectCurrentPageInfo ( bool loadDefault ) : System.PageInfo |
Detects the correct T:PageInfo object associated to the current page using the Page and NS parameters in the query string.
|
|
DiskUsage ( string dir ) : long |
Computes the Disk Space Usage of a directory.
|
|
EscapeString ( string input ) : string |
Escapes bad characters in a string (pipes and \n).
|
|
ExtractDirectoryName ( string path ) : string |
Extracts the directory name from a path used in the Files Storage Providers.
|
|
GenerateRandomPassword ( ) : string |
Generates a random 10-char Password.
|
|
GetDirectoryName ( string filename ) : string |
Gets the name of a file's directory.
|
|
GetIncludes ( string nspace ) : string |
Gets all the included files for the HTML Head, such as CSS, JavaScript and Icon pluginAssemblies, for a namespace.
|
|
GetJavaScriptIncludes ( ) : string |
Gets all the JavaScript files to include.
|
|
GetMessageIdForAnchor ( System.DateTime messageDateTime ) : string |
Gets the message ID for HTML anchors.
|
|
GetUpdateStatus ( string url, string currentVersion, string &newVersion, string &newAssemblyUrl ) : UpdateStatus |
Gets the update status of a component. This method only works in Full Trust. |
|
GetVersionString ( int version ) : string |
Generates the standard 5-digit Page Version string.
|
|
HashDocumentNameForTemporaryIndex ( string value ) : uint |
Computes the hash value of a string that is value across application instances and versions.
|
|
IsRightToLeftCulture ( ) : bool |
Get the direction of the current culture.
|
|
ObfuscateText ( string input ) : string |
Obfuscates text, replacing each character with its HTML escaped sequence, for example a becomes
|
|
RemoveHtmlMarkup ( string html ) : string |
Removes all HTML tags from a text.
|
|
TimeSpanToString ( System.TimeSpan span ) : string |
Converts a Time Span to string.
|
|
UnescapeString ( string input ) : string |
Unescapes bad characters in a string (pipes and \n).
|
|
UrlDecode ( string input ) : string |
Executes URL-decoding, replacing spaces as processed by UrlEncode.
|
|
UrlEncode ( string input ) : string |
Executes URL-encoding, avoiding to use '+' for spaces.
|
Method | Description | |
---|---|---|
UppercaseInitial ( string value ) : string |
public static BytesToString ( long bytes ) : string | ||
bytes | long | The # of bytes. |
return | string |
public static ComputeSecurityHash ( string username, string email, System.DateTime dateTime ) : string | ||
username | string | The Username. |
string | The email. | |
dateTime | System.DateTime | The date/time. |
return | string |
public static DetectCurrentFullName ( ) : string | ||
return | string |
public static DetectCurrentNamespace ( ) : string | ||
return | string |
public static DetectCurrentNamespaceInfo ( ) : NamespaceInfo | ||
return | NamespaceInfo |
public static DetectCurrentPageInfo ( bool loadDefault ) : System.PageInfo | ||
loadDefault | bool | |
return | System.PageInfo |
public static DiskUsage ( string dir ) : long | ||
dir | string | The directory. |
return | long |
public static EscapeString ( string input ) : string | ||
input | string | The input string. |
return | string |
public static ExtractDirectoryName ( string path ) : string | ||
path | string | The path, for example '/folder/blah/'. |
return | string |
public static GenerateRandomPassword ( ) : string | ||
return | string |
public static GetDirectoryName ( string filename ) : string | ||
filename | string | The filename. |
return | string |
public static GetIncludes ( string nspace ) : string | ||
nspace | string | The namespace ( |
return | string |
public static GetJavaScriptIncludes ( ) : string | ||
return | string |
public static GetMessageIdForAnchor ( System.DateTime messageDateTime ) : string | ||
messageDateTime | System.DateTime | The message date/time. |
return | string |
public static GetUpdateStatus ( string url, string currentVersion, string &newVersion, string &newAssemblyUrl ) : UpdateStatus | ||
url | string | The version file URL. |
currentVersion | string | The current version. |
newVersion | string | The new version, if any. |
newAssemblyUrl | string | The URL of the new assembly, if applicable and available. |
return | UpdateStatus |
public static GetVersionString ( int version ) : string | ||
version | int | The Page version. |
return | string |
public static HashDocumentNameForTemporaryIndex ( string value ) : uint | ||
value | string | The string to compute the hash of. |
return | uint |
public static IsRightToLeftCulture ( ) : bool | ||
return | bool |
public static ObfuscateText ( string input ) : string | ||
input | string | The input text. |
return | string |
public static RemoveHtmlMarkup ( string html ) : string | ||
html | string | The input HTML. |
return | string |
public static TimeSpanToString ( System.TimeSpan span ) : string | ||
span | System.TimeSpan | The Time Span. |
return | string |
public static UnescapeString ( string input ) : string | ||
input | string | The input string. |
return | string |
public static UrlDecode ( string input ) : string | ||
input | string | The input string. |
return | string |
public static UrlEncode ( string input ) : string | ||
input | string | The input string. |
return | string |