C# 클래스 Engage.Dnn.TellAFriend.Utility

Utility Class for Engage: Tell-A-Friend
파일 보기 프로젝트 열기: EngageSoftware/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