C# Класс Engage.Dnn.TellAFriend.Utility

Utility Class for Engage: Tell-A-Friend
Показать файл Открыть проект

Открытые методы

Метод Описание
AddJQueryReference ( ) : void

Adds the a reference to jQuery.

AddJavaScriptResource ( Page page, string scriptName ) : void

Adds a reference to the JavaScript (embedded) resource with the given scriptName to the given page.

GetBooleanSetting ( IDictionary settings, string settingName, bool defaultValue ) : bool

Gets the given setting as a bool, or defaultValue if the setting hasn't been set.

GetStringSetting ( Hashtable settings, string settingName, string defaultValue ) : string

Gets the given setting as a string, or defaultValue if the setting is not set.

Приватные методы

Метод Описание
GetJavaScriptResourceName ( string scriptName ) : string

Gets the full name of the JavaScript (embedded) resource with the given name, providing a debug version if compiled in Debug mode, and a minified version in Release mode.

Описание методов

AddJQueryReference() публичный статический Метод

Adds the a reference to jQuery.
public static AddJQueryReference ( ) : void
Результат void

AddJavaScriptResource() публичный статический Метод

Adds a reference to the JavaScript (embedded) resource with the given scriptName to the given page.
is null
public static AddJavaScriptResource ( Page page, string scriptName ) : void
page System.Web.UI.Page The page to which the reference needs to be added.
scriptName string Name of the script (without file extension).
Результат void

GetBooleanSetting() публичный статический Метод

Gets the given setting as a bool, or defaultValue if the setting hasn't been set.
or are null
public static GetBooleanSetting ( IDictionary settings, string settingName, bool defaultValue ) : bool
settings IDictionary The settings collection.
settingName string Name of the setting.
defaultValue bool The default value.
Результат bool

GetStringSetting() публичный статический Метод

Gets the given setting as a string, or defaultValue if the setting is not set.
public static GetStringSetting ( Hashtable settings, string settingName, string defaultValue ) : string
settings System.Collections.Hashtable The settings collection.
settingName string Name of the setting.
defaultValue string The default value.
Результат string