Class Utilities
Inheritance
System.Object
Utilities
Assembly: DotNetNuke.Web.dll
Syntax
public class Utilities : object
Methods
|
Improve this Doc
View Source
ApplyControlSkin(Control, String, String)
Applies a custom CSS file for a control using a consistent naming pattern.
Declaration
public static void ApplyControlSkin(Control targetControl, string controlSubSkinName = "", string controlName = "")
Parameters
| Type |
Name |
Description |
| Control |
targetControl |
The control that should have a skin injected.
|
| System.String |
controlSubSkinName |
An optional sub-skin.
|
| System.String |
controlName |
An optional control name that might differ from the type.
|
|
Improve this Doc
View Source
ApplySkin(Control, String, String, String)
Declaration
public static void ApplySkin(Control targetControl, string fallBackEmbeddedSkinName, string controlName, string webControlSkinSubFolderName)
Parameters
| Type |
Name |
Description |
| Control |
targetControl |
|
| System.String |
fallBackEmbeddedSkinName |
|
| System.String |
controlName |
|
| System.String |
webControlSkinSubFolderName |
|
|
Improve this Doc
View Source
ApplySkin(Control, String, String)
Declaration
public static void ApplySkin(Control targetControl, string fallBackEmbeddedSkinName, string controlName)
Parameters
| Type |
Name |
Description |
| Control |
targetControl |
|
| System.String |
fallBackEmbeddedSkinName |
|
| System.String |
controlName |
|
|
Improve this Doc
View Source
ApplySkin(Control, String)
Declaration
public static void ApplySkin(Control targetControl, string fallBackEmbeddedSkinName)
Parameters
| Type |
Name |
Description |
| Control |
targetControl |
|
| System.String |
fallBackEmbeddedSkinName |
|
|
Improve this Doc
View Source
ApplySkin(Control)
Declaration
public static void ApplySkin(Control targetControl)
Parameters
| Type |
Name |
Description |
| Control |
targetControl |
|
|
Improve this Doc
View Source
CreateThumbnail(Services.FileSystem.FileInfo, Image, Int32, Int32)
Declaration
public static void CreateThumbnail(Services.FileSystem.FileInfo image, Image img, int maxWidth, int maxHeight)
Parameters
| Type |
Name |
Description |
| FileInfo |
image |
|
| Image |
img |
|
| System.Int32 |
maxWidth |
|
| System.Int32 |
maxHeight |
|
|
Improve this Doc
View Source
GetClientAlert(Control, MessageWindowParameters)
Declaration
public static string GetClientAlert(Control ctrl, MessageWindowParameters message)
Parameters
Returns
| Type |
Description |
| System.String |
|
|
Improve this Doc
View Source
GetClientAlert(Control, String)
Declaration
public static string GetClientAlert(Control ctrl, string message)
Parameters
| Type |
Name |
Description |
| Control |
ctrl |
|
| System.String |
message |
|
Returns
| Type |
Description |
| System.String |
|
|
Improve this Doc
View Source
GetLocalizedString(String)
Declaration
public static string GetLocalizedString(string key)
Parameters
| Type |
Name |
Description |
| System.String |
key |
|
Returns
| Type |
Description |
| System.String |
|
|
Improve this Doc
View Source
GetLocalizedStringFromParent(String, Control)
Declaration
public static string GetLocalizedStringFromParent(string key, Control control)
Parameters
| Type |
Name |
Description |
| System.String |
key |
|
| Control |
control |
|
Returns
| Type |
Description |
| System.String |
|
|
Improve this Doc
View Source
GetLocalResourceFile(Control)
Declaration
public static string GetLocalResourceFile(Control ctrl)
Parameters
| Type |
Name |
Description |
| Control |
ctrl |
|
Returns
| Type |
Description |
| System.String |
|
|
Improve this Doc
View Source
GetOnClientClickConfirm(Control, MessageWindowParameters)
Declaration
public static string GetOnClientClickConfirm(Control ctrl, MessageWindowParameters message)
Parameters
Returns
| Type |
Description |
| System.String |
|
|
Improve this Doc
View Source
GetOnClientClickConfirm(Control, String)
Declaration
public static string GetOnClientClickConfirm(Control ctrl, string message)
Parameters
| Type |
Name |
Description |
| Control |
ctrl |
|
| System.String |
message |
|
Returns
| Type |
Description |
| System.String |
|
|
Improve this Doc
View Source
GetViewStateAsString(Object, String)
Declaration
public static string GetViewStateAsString(object value, string defaultValue)
Parameters
| Type |
Name |
Description |
| System.Object |
value |
|
| System.String |
defaultValue |
|
Returns
| Type |
Description |
| System.String |
|
|
Improve this Doc
View Source
RegisterAlertOnPageLoad(Control, MessageWindowParameters)
Declaration
public static void RegisterAlertOnPageLoad(Control ctrl, MessageWindowParameters message)
Parameters
|
Improve this Doc
View Source
RegisterAlertOnPageLoad(Control, String)
Declaration
public static void RegisterAlertOnPageLoad(Control ctrl, string message)
Parameters
| Type |
Name |
Description |
| Control |
ctrl |
|
| System.String |
message |
|
Extension Methods