Property | Type | Description | |
---|---|---|---|
UserName | string |
Property | Type | Description | |
---|---|---|---|
AddBlockMove | void | ||
AddGoogleAnalytics | void | ||
AddPopupControls | void | ||
AddTriggerPanel | void | ||
AddZoneElements | void | ||
GetCookieContext | void | ||
HtmlLinkExists | bool | ||
HtmlMetaExists | bool | ||
OnBlockUpdated | void | ||
SaveContextItem | void | ||
SetPage | void |
Method | Description | |
---|---|---|
AddCSSLink ( |
Adds a new CSS link that will be added to the page header prior to the page being rendered
|
|
AddCSSLink ( |
Adds the CSS link to the page
|
|
AddCSSLink ( string href, bool fingerprint = true ) : void |
Adds a new CSS link that will be added to the page header prior to the page being rendered
|
|
AddCSSLink ( string href, string mediaType, bool fingerprint = true ) : void |
Adds the CSS link to the page
|
|
AddConfigurationUpdateTrigger ( |
Adds an update trigger for when the block instance properties are updated.
|
|
AddHistory ( string key, string state, string title = "" ) : void |
Adds a history point to the ScriptManager. Note: ScriptManager's EnableHistory property must be set to True
|
|
AddHtmlLink ( System.Web.UI.HtmlControls.HtmlLink htmlLink ) : void |
Adds a new Html link that will be added to the page header prior to the page being rendered.
|
|
AddHtmlLink ( |
Adds a new Html link that will be added to the page header prior to the page being rendered
|
|
AddMetaTag ( System.Web.UI.HtmlControls.HtmlMeta htmlMeta ) : void |
Adds a meta tag to the page header prior to the page being rendered
|
|
AddMetaTag ( |
Adds a meta tag to the page
|
|
AddScriptLink ( |
Adds a new script tag to the page header prior to the page being rendered
|
|
AddScriptLink ( string path, bool fingerprint = true ) : void |
Adds a new script tag to the page header prior to the page being rendered.
|
|
AddScriptToHead ( |
Adds the script to head.
|
|
DeleteUserPreference ( string key ) : void |
Deletes a user preference value for the specified key
|
|
GetAttributeValue ( string key ) : string |
Returns the current page's first value for the selected attribute If the attribute doesn't exist, null is returned
|
|
GetAttributeValues ( string key ) : List |
Returns the current page's values for the selected attribute. If the attribute doesn't exist an empty list is returned.
|
|
GetClientIpAddress ( ) : string |
Gets the client's ip address.
|
|
GetContextCookieName ( bool pageSpecific ) : string |
Gets the name of the context cookie.
|
|
GetContextEntityTypes ( ) : List |
Gets the context entity types.
|
|
GetCurrentContext ( Rock.Web.Cache.EntityTypeCache entity ) : Rock.Data.IEntity |
Gets the current context object for a given entity type.
|
|
GetSharedItem ( string key ) : object |
Retrieves an item from the current HTTPRequest items collection. This is useful to retrieve an object that was saved by a previous block on the same page.
|
|
GetUserPreference ( string key ) : string |
Returns a user preference for the current user and given key.
|
|
GetUserPreferences ( string keyPrefix ) : string>.Dictionary |
Returns the preference values for the current user that start with a given key.
|
|
HideSecondaryBlocks ( Rock.Web.UI.RockBlock caller, bool hidden ) : void |
Hides any secondary blocks.
|
|
LoadGoogleMapsApi ( ) : void |
Adds the google maps javascript API to the page
|
|
LogException ( |
Logs the exception.
|
|
PageParameter ( Rock.Web.UI.PageReference pageReference, string name ) : string |
Checks the page reference's parms and querystring for a parameter matching the specified name, and if found returns the string
|
|
PageParameter ( string name, bool searchFormParams = false ) : string |
Checks the page's RouteData values and then the query string for a parameter matching the specified name, and if found returns the string value
|
|
PageParameters ( ) : object>.Dictionary |
Gets the page route and query string parameters
|
|
ResolveRockUrl ( string url ) : string |
Returns a resolved Rock URL. Similar to
|
|
ResolveRockUrl ( string url, bool fingerprint ) : string |
Resolves the rock URL.
|
|
ResolveRockUrlIncludeRoot ( string url ) : string |
Resolves the rock URL and includes root.
|
|
SaveSharedItem ( string key, object item ) : void |
Used to save an item to the current HTTPRequests items collection. This is useful if multiple blocks on the same page will need access to the same object. The first block can read the object and save it using this method for the other blocks to reference
|
|
SaveUserPreferences ( string keyPrefix ) : void |
Saves the user preferences.
|
|
SessionUserPreferences ( ) : string>.Dictionary |
Returns the current user's preferences, if they have previously been loaded into the session, they will be retrieved from there, otherwise they will be retrieved from the database, added to session and then returned
|
|
SetContextCookie ( IEntity entity, bool pageSpecific = false, bool refreshPage = true ) : void |
Sets the context cookie.
|
|
SetUserPreference ( string key, string value, bool saveValue = true ) : void |
Sets a user preference value for the specified key. If the key already exists, the value will be updated, if it is a new key it will be added. Value is then optionally saved to database.
|
|
UpdateBlocks ( string blockTypePath ) : void |
Updates the blocks.
|
Method | Description | |
---|---|---|
FindRockControls ( System.Web.UI.ControlCollection controls ) : void |
Recurses the page's System.Web.UI.ControlCollection looking for any Rock.Web.UI.Controls.Zone controls
|
|
FindZone ( string zoneName ) : |
Find the Rock.Web.UI.Controls.Zone for the specified zone name. Looks in the Zones property to see if it has been defined. If an existing zone Rock.Web.UI.Controls.Zone cannot be found, the HtmlForm control is returned
|
|
InitializeCulture ( ) : void |
Initializes the page's culture to use the culture specified by the browser ("auto")
|
|
OnInit ( |
Loads all of the configured blocks for the current page into the control tree
|
|
OnLoad ( |
Raises the E:System.Web.UI.Control.Load event.
|
|
OnSaveStateComplete ( |
Raises the E:System.Web.UI.Page.SaveStateComplete event after the page state has been saved to the persistence medium.
|
|
scriptManager_Navigate ( object sender, System.Web.UI.HistoryEventArgs e ) : void |
Handles the Navigate event of the scriptManager control.
|
|
trigger_Click ( object sender, |
Handles the Click event of the trigger control.
|
Method | Description | |
---|---|---|
AddBlockMove ( ) : void |
Adds a control to move the block to another zone on the page.
|
|
AddGoogleAnalytics ( string code ) : void |
Adds the google analytics script
|
|
AddPopupControls ( ) : void |
Adds the popup controls.
|
|
AddTriggerPanel ( ) : void |
Adds the config elements.
|
|
AddZoneElements ( bool canConfigPage ) : void |
Adds the config elements.
|
|
GetCookieContext ( string cookieName ) : void | ||
HtmlLinkExists ( |
Returns a System.Boolean flag indicating if a specified parent control contains the specified HtmlLink.
|
|
HtmlMetaExists ( |
Returns a flag indicating if a meta tag exists on the page.
|
|
OnBlockUpdated ( int blockId ) : void |
Called when a block's properties are updated.
|
|
SaveContextItem ( string key, object item ) : void | ||
SetPage ( PageCache pageCache ) : void |
Sets the page.
|
public static AddCSSLink ( |
||
page | The |
|
href | string | A |
fingerprint | bool | if set to |
return | void |
public static AddCSSLink ( |
||
page | The |
|
href | string | A |
mediaType | string | A |
fingerprint | bool | if set to |
return | void |
public AddCSSLink ( string href, bool fingerprint = true ) : void | ||
href | string | A |
fingerprint | bool | if set to |
return | void |
public AddCSSLink ( string href, string mediaType, bool fingerprint = true ) : void | ||
href | string | A |
mediaType | string | A |
fingerprint | bool | if set to |
return | void |
public AddConfigurationUpdateTrigger ( |
||
updatePanel | The |
|
return | void |
public AddHistory ( string key, string state, string title = "" ) : void | ||
key | string | A |
state | string | A |
title | string | A |
return | void |
public AddHtmlLink ( System.Web.UI.HtmlControls.HtmlLink htmlLink ) : void | ||
htmlLink | System.Web.UI.HtmlControls.HtmlLink | The |
return | void |
public static AddHtmlLink ( |
||
page | The |
|
htmlLink | System.Web.UI.HtmlControls.HtmlLink | The |
contentPlaceHolderId | string | A |
return | void |
public AddMetaTag ( System.Web.UI.HtmlControls.HtmlMeta htmlMeta ) : void | ||
htmlMeta | System.Web.UI.HtmlControls.HtmlMeta | The |
return | void |
public static AddMetaTag ( |
||
page | The |
|
htmlMeta | System.Web.UI.HtmlControls.HtmlMeta | A |
return | void |
public static AddScriptLink ( |
||
page | The |
|
path | string | A |
fingerprint | bool | if set to |
return | void |
public AddScriptLink ( string path, bool fingerprint = true ) : void | ||
path | string | A |
fingerprint | bool | if set to |
return | void |
public static AddScriptToHead ( |
||
page | The page. | |
script | string | The script. |
AddScriptTags | bool | if set to |
return | void |
public DeleteUserPreference ( string key ) : void | ||
key | string | A |
return | void |
protected FindRockControls ( System.Web.UI.ControlCollection controls ) : void | ||
controls | System.Web.UI.ControlCollection | A |
return | void |
protected FindZone ( string zoneName ) : |
||
zoneName | string | A |
return |
public GetAttributeValue ( string key ) : string | ||
key | string | A |
return | string |
public GetAttributeValues ( string key ) : List |
||
key | string | A |
return | List |
public static GetClientIpAddress ( ) : string | ||
return | string |
public GetContextCookieName ( bool pageSpecific ) : string | ||
pageSpecific | bool | if set to |
return | string |
public GetCurrentContext ( Rock.Web.Cache.EntityTypeCache entity ) : Rock.Data.IEntity | ||
entity | Rock.Web.Cache.EntityTypeCache | The |
return | Rock.Data.IEntity |
public GetSharedItem ( string key ) : object | ||
key | string | A |
return | object |
public GetUserPreference ( string key ) : string | ||
key | string | A |
return | string |
public GetUserPreferences ( string keyPrefix ) : string>.Dictionary |
||
keyPrefix | string | A |
return | string>.Dictionary |
public HideSecondaryBlocks ( Rock.Web.UI.RockBlock caller, bool hidden ) : void | ||
caller | Rock.Web.UI.RockBlock | The |
hidden | bool | A |
return | void |
public LogException ( |
||
ex | The |
|
return | void |
protected OnLoad ( |
||
e | The |
|
return | void |
protected OnSaveStateComplete ( |
||
e | A |
|
return | void |
public PageParameter ( Rock.Web.UI.PageReference pageReference, string name ) : string | ||
pageReference | Rock.Web.UI.PageReference | The |
name | string | A |
return | string |
public PageParameter ( string name, bool searchFormParams = false ) : string | ||
name | string | A |
searchFormParams | bool | if set to |
return | string |
public PageParameters ( ) : object>.Dictionary |
||
return | object>.Dictionary |
public ResolveRockUrl ( string url ) : string | ||
url | string | A |
return | string |
public ResolveRockUrl ( string url, bool fingerprint ) : string | ||
url | string | The URL. |
fingerprint | bool | if set to |
return | string |
public ResolveRockUrlIncludeRoot ( string url ) : string | ||
url | string | The URL. |
return | string |
public SaveSharedItem ( string key, object item ) : void | ||
key | string | A |
item | object | The |
return | void |
public SaveUserPreferences ( string keyPrefix ) : void | ||
keyPrefix | string | The key prefix. |
return | void |
public SessionUserPreferences ( ) : string>.Dictionary |
||
return | string>.Dictionary |
public SetContextCookie ( IEntity entity, bool pageSpecific = false, bool refreshPage = true ) : void | ||
entity | IEntity | The entity. |
pageSpecific | bool | if set to |
refreshPage | bool | if set to |
return | void |
public SetUserPreference ( string key, string value, bool saveValue = true ) : void | ||
key | string | A |
value | string | A |
saveValue | bool | if set to |
return | void |
public UpdateBlocks ( string blockTypePath ) : void | ||
blockTypePath | string | The block type path. |
return | void |
protected scriptManager_Navigate ( object sender, System.Web.UI.HistoryEventArgs e ) : void | ||
sender | object | The source of the event. |
e | System.Web.UI.HistoryEventArgs | The |
return | void |
protected trigger_Click ( object sender, |
||
sender | object | The source of the event. |
e | The |
|
return | void |