Show / Hide Table of Contents

Class Utilities

Inheritance
object
Utilities
Inherited Members
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
Namespace: DotNetNuke.Web.UI
Assembly: DotNetNuke.Web.dll
Syntax
public class Utilities

Constructors

Utilities()

Declaration
public Utilities()

Methods

ApplyControlSkin(Control, string, string)

Declaration
public static void ApplyControlSkin(Control targetControl, string controlSubSkinName = "", string controlName = "")
Parameters
Type Name Description
Control targetControl
string controlSubSkinName
string controlName

ApplySkin(Control)

Declaration
[Obsolete("Deprecated in DotNetNuke 9.8.0. Telerik support will be removed in DNN Platform 10.0.0.  Please use one of the ApplyControlSkin overloads if applicable to your implementation. Scheduled for removal in v10.0.0.")]
public static void ApplySkin(Control targetControl)
Parameters
Type Name Description
Control targetControl

ApplySkin(Control, string)

Declaration
[Obsolete("Deprecated in DotNetNuke 9.8.0. Telerik support will be removed in DNN Platform 10.0.0.  Please use one of the ApplyControlSkin overloads if applicable to your implementation. Scheduled for removal in v10.0.0.")]
public static void ApplySkin(Control targetControl, string fallBackEmbeddedSkinName)
Parameters
Type Name Description
Control targetControl
string fallBackEmbeddedSkinName

ApplySkin(Control, string, string)

Declaration
[Obsolete("Deprecated in DotNetNuke 9.8.0. Telerik support will be removed in DNN Platform 10.0.0.  Please use one of the ApplyControlSkin overloads if applicable to your implementation. Scheduled for removal in v10.0.0.")]
public static void ApplySkin(Control targetControl, string fallBackEmbeddedSkinName, string controlName)
Parameters
Type Name Description
Control targetControl
string fallBackEmbeddedSkinName
string controlName

ApplySkin(Control, string, string, string)

Declaration
[Obsolete("Deprecated in DotNetNuke 9.8.0. Telerik support will be removed in DNN Platform 10.0.0.  Please use one of the ApplyControlSkin overloads if applicable to your implementation. Scheduled for removal in v10.0.0.")]
public static void ApplySkin(Control targetControl, string fallBackEmbeddedSkinName, string controlName, string webControlSkinSubFolderName)
Parameters
Type Name Description
Control targetControl
string fallBackEmbeddedSkinName
string controlName
string webControlSkinSubFolderName

CreateThumbnail(FileInfo, Image, int, int)

Declaration
public static void CreateThumbnail(FileInfo image, Image img, int maxWidth, int maxHeight)
Parameters
Type Name Description
FileInfo image
Image img
int maxWidth
int maxHeight

GetClientAlert(Control, MessageWindowParameters)

Declaration
public static string GetClientAlert(Control ctrl, MessageWindowParameters message)
Parameters
Type Name Description
Control ctrl
MessageWindowParameters message
Returns
Type Description
string

GetClientAlert(Control, string)

Declaration
public static string GetClientAlert(Control ctrl, string message)
Parameters
Type Name Description
Control ctrl
string message
Returns
Type Description
string

GetLocalResourceFile(Control)

Declaration
public static string GetLocalResourceFile(Control ctrl)
Parameters
Type Name Description
Control ctrl
Returns
Type Description
string

GetLocalizedString(string)

Declaration
public static string GetLocalizedString(string key)
Parameters
Type Name Description
string key
Returns
Type Description
string

GetLocalizedStringFromParent(string, Control)

Declaration
public static string GetLocalizedStringFromParent(string key, Control control)
Parameters
Type Name Description
string key
Control control
Returns
Type Description
string

GetOnClientClickConfirm(Control, MessageWindowParameters)

Declaration
public static string GetOnClientClickConfirm(Control ctrl, MessageWindowParameters message)
Parameters
Type Name Description
Control ctrl
MessageWindowParameters message
Returns
Type Description
string

GetOnClientClickConfirm(Control, string)

Declaration
public static string GetOnClientClickConfirm(Control ctrl, string message)
Parameters
Type Name Description
Control ctrl
string message
Returns
Type Description
string

GetViewStateAsString(object, string)

Declaration
public static string GetViewStateAsString(object value, string defaultValue)
Parameters
Type Name Description
object value
string defaultValue
Returns
Type Description
string

RegisterAlertOnPageLoad(Control, MessageWindowParameters)

Declaration
public static void RegisterAlertOnPageLoad(Control ctrl, MessageWindowParameters message)
Parameters
Type Name Description
Control ctrl
MessageWindowParameters message

RegisterAlertOnPageLoad(Control, string)

Declaration
public static void RegisterAlertOnPageLoad(Control ctrl, string message)
Parameters
Type Name Description
Control ctrl
string message

Extension Methods

JsonExtensionsWeb.ToJson(object)
Back to top by the community, for the community... #DNNCMS