C# Класс N2.Resources.Register

Methods to register styles and javascripts.
Показать файл Открыть проект

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

Метод Описание
CkEditor ( this page ) : void
IsRegistered ( ICollection stateCollection, string resourceUrl ) : bool
JQuery ( ICollection stateCollection ) : string
JQuery ( this page ) : void
JQueryPlugins ( ICollection stateCollection ) : string
JQueryPlugins ( this page ) : void
JQueryUi ( ICollection stateCollection ) : string
JQueryUi ( this page ) : void
JavaScript ( ICollection stateCollection, string resourceUrl ) : string
JavaScript ( ICollection stateCollection, string script, ScriptOptions options ) : string
JavaScript ( this page, Type type, string resourceName ) : void

Register an embedded javascript resource reference in the page header.

JavaScript ( this page, Type type, string resourceName, ScriptOptions options ) : void

Register an embedded javascript resource reference in the page header with options.

JavaScript ( this page, string resourceUrl ) : void

Registers a script reference in the page's header.

JavaScript ( this page, string script, ScriptOptions options ) : void
JavaScript ( this page, string script, ScriptPosition position, ScriptOptions options ) : void

Registers a script block on a page.

RegisterResource ( ICollection stateCollection, string resourceUrl ) : bool
StyleSheet ( ICollection stateCollection, string resourceUrl ) : string
StyleSheet ( this page, Type type, string resourceName ) : void

Register an embedded style sheet reference in the page's header.

StyleSheet ( this page, string resourceUrl ) : void

Register a style sheet reference in the page's header.

StyleSheet ( this page, string resourceUrl, Media media ) : void

Register a style sheet reference in the page's header with media type.

TabPanel ( Page page, string selector ) : void
TabPanel ( Page page, string selector, bool registerTabCss ) : void

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

Метод Описание
AddScriptInclude ( Page page, string resourceUrl, Control holder, bool priority ) : Control
AddString ( Control holder, string script, bool priority ) : System.Web.UI.WebControls.Literal
EmbedDocumentReady ( string script ) : string
FrameInteraction ( this page ) : void
GetPlaceHolder ( Page page ) : System.Web.UI.WebControls.PlaceHolder
GetScriptHolder ( Page page ) : System.Script
Is ( this options, ScriptOptions expectedOption ) : bool
Register ( ) : System

Set the resource paths to the defaults. This happens BEFORE the config file is loaded, right at the app start-up.

SelectedQueryKeyRegistrationScript ( ) : string
TinyMCE ( ICollection stateCollection ) : string

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

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

public static CkEditor ( this page ) : void
page this
Результат void

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

public static IsRegistered ( ICollection stateCollection, string resourceUrl ) : bool
stateCollection ICollection
resourceUrl string
Результат bool

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

public static JQuery ( ICollection stateCollection ) : string
stateCollection ICollection
Результат string

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

public static JQuery ( this page ) : void
page this
Результат void

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

public static JQueryPlugins ( ICollection stateCollection ) : string
stateCollection ICollection
Результат string

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

public static JQueryPlugins ( this page ) : void
page this
Результат void

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

public static JQueryUi ( ICollection stateCollection ) : string
stateCollection ICollection
Результат string

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

public static JQueryUi ( this page ) : void
page this
Результат void

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

public static JavaScript ( ICollection stateCollection, string resourceUrl ) : string
stateCollection ICollection
resourceUrl string
Результат string

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

public static JavaScript ( ICollection stateCollection, string script, ScriptOptions options ) : string
stateCollection ICollection
script string
options ScriptOptions
Результат string

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

Register an embedded javascript resource reference in the page header.
public static JavaScript ( this page, Type type, string resourceName ) : void
page this The page in whose header to register the javascript.
type System.Type The type in whose assembly the javascript is embedded.
resourceName string The name of the embedded resource.
Результат void

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

Register an embedded javascript resource reference in the page header with options.
public static JavaScript ( this page, Type type, string resourceName, ScriptOptions options ) : void
page this The page in whose header to register the javascript.
type System.Type The type in whose assembly the javascript is embedded.
resourceName string The name of the embedded resource.
options ScriptOptions Options flag.
Результат void

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

Registers a script reference in the page's header.
public static JavaScript ( this page, string resourceUrl ) : void
page this The page onto which to register the javascript.
resourceUrl string The url to the javascript to register.
Результат void

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

public static JavaScript ( this page, string script, ScriptOptions options ) : void
page this
script string
options ScriptOptions
Результат void

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

Registers a script block on a page.
public static JavaScript ( this page, string script, ScriptPosition position, ScriptOptions options ) : void
page this The page onto which to added the script.
script string The script to add.
position ScriptPosition Where to add the script.
options ScriptOptions Script registration options.
Результат void

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

public static RegisterResource ( ICollection stateCollection, string resourceUrl ) : bool
stateCollection ICollection
resourceUrl string
Результат bool

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

public static StyleSheet ( ICollection stateCollection, string resourceUrl ) : string
stateCollection ICollection
resourceUrl string
Результат string

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

Register an embedded style sheet reference in the page's header.
public static StyleSheet ( this page, Type type, string resourceName ) : void
page this The page onto which to register the style sheet.
type System.Type The type whose assembly contains the embedded style sheet.
resourceName string The name of the embedded resource.
Результат void

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

Register a style sheet reference in the page's header.
public static StyleSheet ( this page, string resourceUrl ) : void
page this The page onto which to register the style sheet.
resourceUrl string The url to the style sheet to register.
Результат void

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

Register a style sheet reference in the page's header with media type.
public static StyleSheet ( this page, string resourceUrl, Media media ) : void
page this The page onto which to register the style sheet.
resourceUrl string The url to the style sheet to register.
media Media The media type to assign, e.g. print.
Результат void

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

public static TabPanel ( Page page, string selector ) : void
page System.Web.UI.Page
selector string
Результат void

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

public static TabPanel ( Page page, string selector, bool registerTabCss ) : void
page System.Web.UI.Page
selector string
registerTabCss bool
Результат void