Class DnnBodyProvider
Registers resources at the top of the body on default.aspx.
Inherited Members
Namespace: DotNetNuke.Web.Client.Providers
Assembly: DotNetNuke.Web.Client.dll
Syntax
public class DnnBodyProvider : DnnFileRegistrationProvider
Fields
| Improve this Doc View SourceDefaultName
The name of the provider.
Declaration
public const string DefaultName = null
Field Value
| Type | Description |
|---|---|
| System.String |
DnnBodyPlaceHolderName
The name of the placeholder in which the controls will be rendered.
Declaration
public const string DnnBodyPlaceHolderName = null
Field Value
| Type | Description |
|---|---|
| System.String |
Methods
| Improve this Doc View SourceInitialize(String, System.Collections.Specialized.NameValueCollection)
Initializes the provider.
Declaration
public override void Initialize(string name, System.Collections.Specialized.NameValueCollection config)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The friendly name of the provider. |
| System.Collections.Specialized.NameValueCollection | config | A collection of the name/value pairs representing the provider-specific attributes specified in the configuration for this provider. |
Exceptions
| Type | Condition |
|---|---|
| System.ArgumentNullException | The name of the provider is null. |
| System.ArgumentException | The name of the provider has a length of zero. |
| System.InvalidOperationException | An attempt is made to call System.Configuration.Provider.ProviderBase.Initialize(System.String,System.Collections.Specialized.NameValueCollection) on a provider after the provider has already been initialized. |
RegisterDependencies(HttpContextBase, String, String)
Registers the dependencies in the body of default.aspx.
Declaration
protected override void RegisterDependencies(HttpContextBase http, string js, string css)
Parameters
| Type | Name | Description |
|---|---|---|
| HttpContextBase | http | |
| System.String | js | |
| System.String | css |
Remarks
For some reason ampersands that aren't html escaped are not compliant to HTML standards when they exist in 'link' or 'script' tags in URLs, we need to replace the ampersands with & . This is only required for this one w3c compliancy, the URL itself is a valid URL.
RenderCssDependencies(IEnumerable<IClientDependencyFile>, HttpContextBase, IDictionary<String, String>)
Registers resources at the top of the body on default.aspx.
Declaration
protected override string RenderCssDependencies(IEnumerable<IClientDependencyFile> cssDependencies, HttpContextBase http, IDictionary<string, string> htmlAttributes)
Parameters
| Type | Name | Description |
|---|---|---|
| IEnumerable<IClientDependencyFile> | cssDependencies | |
| HttpContextBase | http | |
| IDictionary<System.String, System.String> | htmlAttributes |
Returns
| Type | Description |
|---|---|
| System.String |
RenderJsDependencies(IEnumerable<IClientDependencyFile>, HttpContextBase, IDictionary<String, String>)
Registers resources at the top of the body on default.aspx.
Declaration
protected override string RenderJsDependencies(IEnumerable<IClientDependencyFile> jsDependencies, HttpContextBase http, IDictionary<string, string> htmlAttributes)
Parameters
| Type | Name | Description |
|---|---|---|
| IEnumerable<IClientDependencyFile> | jsDependencies | |
| HttpContextBase | http | |
| IDictionary<System.String, System.String> | htmlAttributes |
Returns
| Type | Description |
|---|---|
| System.String |
RenderSingleCssFile(String, IDictionary<String, String>)
Registers resources at the top of the body on default.aspx.
Declaration
protected override string RenderSingleCssFile(string css, IDictionary<string, string> htmlAttributes)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | css | |
| IDictionary<System.String, System.String> | htmlAttributes |
Returns
| Type | Description |
|---|---|
| System.String |
RenderSingleJsFile(String, IDictionary<String, String>)
Registers resources at the top of the body on default.aspx.
Declaration
protected override string RenderSingleJsFile(string js, IDictionary<string, string> htmlAttributes)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | js | |
| IDictionary<System.String, System.String> | htmlAttributes |
Returns
| Type | Description |
|---|---|
| System.String |