Class Globals
Assembly: DotNetNuke.dll
Syntax
[StandardModule]
public sealed class Globals
Constructors
Globals()
Declaration
Fields
BaseTagRegex
Declaration
public static readonly Regex BaseTagRegex
Field Value
EmailValidatorRegex
Declaration
public static readonly Regex EmailValidatorRegex
Field Value
FileEscapingRegex
Declaration
public static readonly Regex FileEscapingRegex
Field Value
FileExtensionRegex
Declaration
public static readonly Regex FileExtensionRegex
Field Value
FileValidNameRegex
Declaration
public static readonly Regex FileValidNameRegex
Field Value
InvalidCharacters
Declaration
public static readonly Regex InvalidCharacters
Field Value
InvalidInitialCharacters
Declaration
public static readonly Regex InvalidInitialCharacters
Field Value
NonAlphanumericCharacters
Declaration
public static readonly Regex NonAlphanumericCharacters
Field Value
NumberMatchRegex
Declaration
public static readonly Regex NumberMatchRegex
Field Value
ServicesFrameworkRegex
Declaration
public static readonly Regex ServicesFrameworkRegex
Field Value
USERNAME_UNALLOWED_ASCII
Declaration
public static readonly string USERNAME_UNALLOWED_ASCII
Field Value
glbAboutPage
Declaration
public const string glbAboutPage = "about.htm"
Field Value
glbAllowControlPanelToDetermineVisibility
Declaration
public const bool glbAllowControlPanelToDetermineVisibility = false
Field Value
glbConfigFolder
Declaration
public const string glbConfigFolder = "\\Config\\"
Field Value
glbContainersPath
Declaration
public const string glbContainersPath = "Portals/_default/Containers/"
Field Value
glbDefaultControlPanel
Declaration
public const string glbDefaultControlPanel = "Admin/ControlPanel/IconBar.ascx"
Field Value
glbDefaultPage
Declaration
public const string glbDefaultPage = "Default.aspx"
Field Value
glbDefaultPane
Declaration
public const string glbDefaultPane = "ContentPane"
Field Value
glbDotNetNukeConfig
Declaration
public const string glbDotNetNukeConfig = "DotNetNuke.config"
Field Value
glbEmailRegEx
Declaration
public const string glbEmailRegEx = "^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9.-]+\\.[a-zA-Z]{2,}$"
Field Value
glbHostSkinFolder
Declaration
public const string glbHostSkinFolder = "_default"
Field Value
glbProtectedExtension
Declaration
public const string glbProtectedExtension = ".resources"
Field Value
glbRoleAllUsers
Declaration
public const string glbRoleAllUsers = "-1"
Field Value
glbRoleAllUsersName
Declaration
public const string glbRoleAllUsersName = "All Users"
Field Value
glbRoleNothing
Declaration
public const string glbRoleNothing = "-4"
Field Value
glbRoleSuperUser
Declaration
public const string glbRoleSuperUser = "-2"
Field Value
glbRoleSuperUserName
Declaration
public const string glbRoleSuperUserName = "Superuser"
Field Value
glbRoleUnauthUser
Declaration
public const string glbRoleUnauthUser = "-3"
Field Value
glbRoleUnauthUserName
Declaration
public const string glbRoleUnauthUserName = "Unauthenticated Users"
Field Value
Declaration
public const string glbScriptFormat = "<script type=\"text/javascript\" src=\"{0}\" ></script>"
Field Value
glbSkinsPath
Declaration
public const string glbSkinsPath = "Portals/_default/Skins/"
Field Value
glbSuperUserAppName
Declaration
public const int glbSuperUserAppName = -1
Field Value
glbUserNameMinLength
Declaration
public const int glbUserNameMinLength = 5
Field Value
glbUserNameRegEx
Declaration
public const string glbUserNameRegEx = ""
Field Value
Properties
ApplicationMapPath
Declaration
[Obsolete("Deprecated in DotNetNuke 9.7.1. Use Dependency Injection to resolve 'DotNetNuke.Abstractions.IApplicationStatusInfo' instead. Scheduled removal in v11.0.0.")]
public static string ApplicationMapPath { get; }
Property Value
ApplicationPath
Declaration
public static string ApplicationPath { get; }
Property Value
DataBaseVersion
Declaration
[Obsolete("Deprecated in DotNetNuke 9.7.1. Use Dependency Injection to resolve 'DotNetNuke.Abstractions.IApplicationStatusInfo' instead. Scheduled removal in v11.0.0.")]
public static Version DataBaseVersion { get; }
Property Value
DatabaseEngineVersion
Declaration
public static Version DatabaseEngineVersion { get; set; }
Property Value
DesktopModulePath
Declaration
public static string DesktopModulePath { get; }
Property Value
ElapsedSinceAppStart
Declaration
public static TimeSpan ElapsedSinceAppStart { get; }
Property Value
Declaration
public static string FormattedNetFrameworkVersion { get; }
Property Value
HostMapPath
Declaration
public static string HostMapPath { get; }
Property Value
HostPath
Declaration
public static string HostPath { get; }
Property Value
IISAppName
Declaration
public static string IISAppName { get; set; }
Property Value
ImageFileTypes
Declaration
public static string ImageFileTypes { get; }
Property Value
ImagePath
Declaration
public static string ImagePath { get; }
Property Value
InstallMapPath
Declaration
public static string InstallMapPath { get; }
Property Value
InstallPath
Declaration
public static string InstallPath { get; }
Property Value
NETFrameworkVersion
Declaration
public static Version NETFrameworkVersion { get; set; }
Property Value
OperatingSystemVersion
Declaration
public static Version OperatingSystemVersion { get; set; }
Property Value
ServerName
Declaration
public static string ServerName { get; set; }
Property Value
Status
Declaration
[Obsolete("Deprecated in DotNetNuke 9.7.1. Use Dependency Injection to resolve 'DotNetNuke.Abstractions.IApplicationStatusInfo' instead. Scheduled removal in v11.0.0.")]
public static Globals.UpgradeStatus Status { get; }
Property Value
glbImageFileTypes
Declaration
[Obsolete("Deprecated in DotNetNuke 9.8.1. Use ImageFileTypes instead. Scheduled removal in v11.0.0.")]
public static string glbImageFileTypes { get; }
Property Value
Methods
AccessDeniedURL()
Declaration
public static string AccessDeniedURL()
Returns
AccessDeniedURL(string)
Declaration
public static string AccessDeniedURL(string message)
Parameters
Type |
Name |
Description |
string |
message |
|
Returns
AddHTTP(string)
Declaration
public static string AddHTTP(string strURL)
Parameters
Type |
Name |
Description |
string |
strURL |
|
Returns
AddPort(string, string)
Declaration
public static string AddPort(string httpAlias, string originalUrl)
Parameters
Returns
ApplicationURL()
Declaration
public static string ApplicationURL()
Returns
ApplicationURL(int)
Declaration
public static string ApplicationURL(int tabID)
Parameters
Type |
Name |
Description |
int |
tabID |
|
Returns
BuildCrossTabDataSet(string, IDataReader, string, string, string, string, string, string, string)
Declaration
[Obsolete("Deprecated in DotNetNuke 9.8.1. No replacement. Scheduled for removal in v11.0.0.")]
public static DataSet BuildCrossTabDataSet(string dataSetName, IDataReader result, string fixedColumns, string variableColumns, string keyColumn, string fieldColumn, string fieldTypeColumn, string stringValueColumn, string numericValueColumn)
Parameters
Returns
BuildCrossTabDataSet(string, IDataReader, string, string, string, string, string, string, string, CultureInfo)
Declaration
[Obsolete("Deprecated in DotNetNuke 9.8.1. No replacement. Scheduled for removal in v11.0.0.")]
public static DataSet BuildCrossTabDataSet(string dataSetName, IDataReader result, string fixedColumns, string variableColumns, string keyColumn, string fieldColumn, string fieldTypeColumn, string stringValueColumn, string numericValueColumn, CultureInfo culture)
Parameters
Returns
CleanFileName(string)
Declaration
public static string CleanFileName(string fileName)
Parameters
Type |
Name |
Description |
string |
fileName |
|
Returns
CleanFileName(string, string)
Declaration
public static string CleanFileName(string fileName, string badChars)
Parameters
Returns
CleanFileName(string, string, string)
Declaration
public static string CleanFileName(string fileName, string badChars, string replaceChar)
Parameters
Returns
CleanName(string)
Declaration
public static string CleanName(string name)
Parameters
Type |
Name |
Description |
string |
name |
|
Returns
CloakText(string)
Declaration
public static string CloakText(string personalInfo)
Parameters
Type |
Name |
Description |
string |
personalInfo |
|
Returns
ConvertDataReaderToDataSet(IDataReader)
Declaration
public static DataSet ConvertDataReaderToDataSet(IDataReader reader)
Parameters
Returns
ConvertDataReaderToDataTable(IDataReader)
Declaration
public static DataTable ConvertDataReaderToDataTable(IDataReader reader)
Parameters
Returns
ConvertDataReaderToDataTable(IDataReader, bool)
Declaration
public static DataTable ConvertDataReaderToDataTable(IDataReader reader, bool closeReader)
Parameters
Returns
Declaration
public static void CreateRSS(IDataReader dr, string titleField, string urlField, string createdDateField, string syndicateField, string domainName, string fileName)
Parameters
CreateValidClass(string, bool)
Declaration
public static string CreateValidClass(string inputValue, bool validateFirstChar)
Parameters
Type |
Name |
Description |
string |
inputValue |
|
bool |
validateFirstChar |
|
Returns
CreateValidID(string)
Declaration
public static string CreateValidID(string inputValue)
Parameters
Type |
Name |
Description |
string |
inputValue |
|
Returns
DateToString(DateTime)
Declaration
[Obsolete("Deprecated in DotNetNuke 9.8.1. Use DateTime.ToString(\"s\") instead. Scheduled for removal in v11.0.0.")]
public static string DateToString(DateTime dateValue)
Parameters
Type |
Name |
Description |
DateTime |
dateValue |
|
Returns
DeleteFilesRecursive(string, string)
Declaration
public static void DeleteFilesRecursive(string strRoot, string filter)
Parameters
DeleteFolderRecursive(string)
Declaration
public static void DeleteFolderRecursive(string strRoot)
Parameters
Type |
Name |
Description |
string |
strRoot |
|
DeserializeHashTableBase64(string)
Declaration
[Obsolete("Deprecated in DotNetNuke 9.8.1. No replacement. Scheduled for removal in v11.0.0.")]
public static Hashtable DeserializeHashTableBase64(string source)
Parameters
Type |
Name |
Description |
string |
source |
|
Returns
DeserializeHashTableXml(string)
Declaration
[Obsolete("Deprecated in DotNetNuke 9.8.1. This API was not meant to be public and only deserializes xml with a root of 'profile'. Scheduled for removal in v11.0.0.")]
public static Hashtable DeserializeHashTableXml(string source)
Parameters
Type |
Name |
Description |
string |
source |
|
Returns
EncodeReservedCharacters(string)
Declaration
[Obsolete("Deprecated in DotNetNuke 9.8.1. Use System.Net.WebUtility.UrlEncode instead. Scheduled for removal in v11.0.0.")]
public static string EncodeReservedCharacters(string queryString)
Parameters
Type |
Name |
Description |
string |
queryString |
|
Returns
FindControlRecursive(Control, string)
Declaration
public static Control FindControlRecursive(Control objControl, string strControlName)
Parameters
Returns
FindControlRecursiveDown(Control, string)
Declaration
public static Control FindControlRecursiveDown(Control objParent, string strControlName)
Parameters
Returns
FindDatabaseVersion(int, int, int)
Declaration
public static bool FindDatabaseVersion(int major, int minor, int build)
Parameters
Type |
Name |
Description |
int |
major |
|
int |
minor |
|
int |
build |
|
Returns
Declaration
public static string FormatAddress(object unit, object street, object city, object region, object country, object postalCode)
Parameters
Returns
Declaration
[Obsolete("Deprecated in DotNetNuke 7.0.0. This function has been replaced by DotNetNuke.Common.Utilities.HtmlUtils.FormatEmail. Scheduled for removal in v11.0.0.")]
public static string FormatEmail(string email)
Parameters
Type |
Name |
Description |
string |
email |
|
Returns
Declaration
public static string FormatHelpUrl(string helpUrl, PortalSettings objPortalSettings, string name)
Parameters
Returns
Declaration
public static string FormatHelpUrl(string helpUrl, PortalSettings objPortalSettings, string name, string version)
Parameters
Returns
Declaration
public static string FormatVersion(Version version)
Parameters
Type |
Name |
Description |
Version |
version |
|
Returns
Declaration
public static string FormatVersion(Version version, bool includeBuild)
Parameters
Type |
Name |
Description |
Version |
version |
|
bool |
includeBuild |
|
Returns
Declaration
public static string FormatVersion(Version version, string fieldFormat, int fieldCount, string delimiterCharacter)
Parameters
Returns
Declaration
[Obsolete("Deprecated in DotNetNuke 7.0.0. This function has been replaced by DotNetNuke.Common.Utilities.HtmlUtils.FormatWebsite. Scheduled for removal in v11.0.0.")]
public static string FormatWebsite(object website)
Parameters
Type |
Name |
Description |
object |
website |
|
Returns
FriendlyUrl(TabInfo, string)
Declaration
public static string FriendlyUrl(TabInfo tab, string path)
Parameters
Returns
FriendlyUrl(TabInfo, string, IPortalSettings)
Declaration
public static string FriendlyUrl(TabInfo tab, string path, IPortalSettings settings)
Parameters
Returns
FriendlyUrl(TabInfo, string, PortalSettings)
Declaration
[Obsolete("Deprecated in DotNetNuke 9.4.3. Use the IPortalSettings overload. Scheduled for removal in v11.0.0.")]
public static string FriendlyUrl(TabInfo tab, string path, PortalSettings settings)
Parameters
Returns
FriendlyUrl(TabInfo, string, string)
Declaration
public static string FriendlyUrl(TabInfo tab, string path, string pageName)
Parameters
Returns
FriendlyUrl(TabInfo, string, string, IPortalSettings)
Declaration
public static string FriendlyUrl(TabInfo tab, string path, string pageName, IPortalSettings settings)
Parameters
Returns
FriendlyUrl(TabInfo, string, string, PortalSettings)
Declaration
[Obsolete("Deprecated in DotNetNuke 9.4.3. Use the IPortalSettings overload. Scheduled for removal in v11.0.0.")]
public static string FriendlyUrl(TabInfo tab, string path, string pageName, PortalSettings settings)
Parameters
Returns
FriendlyUrl(TabInfo, string, string, string)
Declaration
public static string FriendlyUrl(TabInfo tab, string path, string pageName, string portalAlias)
Parameters
Returns
GenerateTabPath(int, string)
Declaration
public static string GenerateTabPath(int parentId, string tabName)
Parameters
Type |
Name |
Description |
int |
parentId |
|
string |
tabName |
|
Returns
GetAbsoluteServerPath(HttpRequest)
Declaration
public static string GetAbsoluteServerPath(HttpRequest request)
Parameters
Returns
GetApplicationName()
Declaration
public static string GetApplicationName()
Returns
GetApplicationName(int)
Declaration
public static string GetApplicationName(int portalID)
Parameters
Type |
Name |
Description |
int |
portalID |
|
Returns
GetContent(string, string)
Declaration
public static XmlNode GetContent(string content, string contentType)
Parameters
Returns
GetDBConnectionString()
Declaration
[Obsolete("Deprecated in DotNetNuke 7.0.0. This function has been replaced by DotNetNuke.Common.Utilities.Config.GetConnectionString. Scheduled for removal in v11.0.0.")]
public static string GetDBConnectionString()
Returns
GetDomainName(HttpRequest)
Declaration
public static string GetDomainName(HttpRequest request)
Parameters
Returns
GetDomainName(HttpRequest, bool)
Declaration
public static string GetDomainName(HttpRequest request, bool parsePortNumber)
Parameters
Returns
GetDomainName(HttpRequestBase)
Declaration
public static string GetDomainName(HttpRequestBase request)
Parameters
Returns
GetDomainName(HttpRequestBase, bool)
Declaration
public static string GetDomainName(HttpRequestBase request, bool parsePortNumber)
Parameters
Returns
GetExternalRequest(string)
Declaration
public static HttpWebRequest GetExternalRequest(string address)
Parameters
Type |
Name |
Description |
string |
address |
|
Returns
GetExternalRequest(string, NetworkCredential)
Declaration
public static HttpWebRequest GetExternalRequest(string address, NetworkCredential credentials)
Parameters
Returns
GetFileList()
Declaration
public static ArrayList GetFileList()
Returns
GetFileList(DirectoryInfo, string, bool)
Declaration
[Obsolete("Deprecated in DotNetNuke 7.0.0. No replacement. Scheduled for removal in v11.0.0.")]
public static ArrayList GetFileList(DirectoryInfo currentDirectory, string strExtensions = "", bool noneSpecified = true)
Parameters
Returns
GetFileList(int)
Declaration
public static ArrayList GetFileList(int portalId)
Parameters
Type |
Name |
Description |
int |
portalId |
|
Returns
GetFileList(int, string)
Declaration
public static ArrayList GetFileList(int portalId, string strExtensions)
Parameters
Type |
Name |
Description |
int |
portalId |
|
string |
strExtensions |
|
Returns
GetFileList(int, string, bool)
Declaration
public static ArrayList GetFileList(int portalId, string strExtensions, bool noneSpecified)
Parameters
Type |
Name |
Description |
int |
portalId |
|
string |
strExtensions |
|
bool |
noneSpecified |
|
Returns
GetFileList(int, string, bool, string)
Declaration
public static ArrayList GetFileList(int portalId, string strExtensions, bool noneSpecified, string folder)
Parameters
Returns
GetFileList(int, string, bool, string, bool)
Declaration
public static ArrayList GetFileList(int portalId, string strExtensions, bool noneSpecified, string folder, bool includeHidden)
Parameters
Returns
GetHashValue(object, string)
Declaration
[Obsolete("Deprecated in DotNetNuke 9.8.1. No replacement. Scheduled for removal in v11.0.0.")]
public static string GetHashValue(object hashObject, string defaultValue)
Parameters
Returns
GetHelpText(int)
Declaration
public static string GetHelpText(int moduleControlId)
Parameters
Type |
Name |
Description |
int |
moduleControlId |
|
Returns
GetHostPortalSettings()
Declaration
public static PortalSettings GetHostPortalSettings()
Returns
GetLastAppliedIteration(Version)
Declaration
[Obsolete("Deprecated in DotNetNuke 9.7.1. Use Dependency Injection to resolve 'DotNetNuke.Abstractions.IApplicationStatusInfo' instead. Scheduled for removal in v11.0.0.")]
public static int GetLastAppliedIteration(Version version)
Parameters
Type |
Name |
Description |
Version |
version |
|
Returns
GetMediumDate(string)
Declaration
public static string GetMediumDate(string strDate)
Parameters
Type |
Name |
Description |
string |
strDate |
|
Returns
GetOnLineHelp(string)
Declaration
public static string GetOnLineHelp(string helpUrl)
Parameters
Type |
Name |
Description |
string |
helpUrl |
|
Returns
GetOnLineHelp(string, ModuleInfo)
Declaration
[Obsolete("Deprecated in DotNetNuke 9.8.1. ModuleInfo is unused, use the overload that does not take a ModuleInfo. Scheduled for removal in v11.0.0.")]
public static string GetOnLineHelp(string helpUrl, ModuleInfo moduleConfig)
Parameters
Returns
GetPortalDomainName(string, HttpRequest, bool)
Declaration
public static string GetPortalDomainName(string strPortalAlias, HttpRequest request, bool blnAddHTTP)
Parameters
Returns
GetPortalSettings()
Declaration
public static PortalSettings GetPortalSettings()
Returns
GetRoleName(int)
Declaration
public static string GetRoleName(int roleId)
Parameters
Type |
Name |
Description |
int |
roleId |
|
Returns
GetShortDate(string)
Declaration
public static string GetShortDate(string strDate)
Parameters
Type |
Name |
Description |
string |
strDate |
|
Returns
GetSubFolderPath(string)
Declaration
[Obsolete("Deprecated in DotNetNuke 7.0.0. Replaced by GetSubFolderPath(string strFileNamePath, int portalId). Scheduled for removal in v11.0.0.")]
public static string GetSubFolderPath(string strFileNamePath)
Parameters
Type |
Name |
Description |
string |
strFileNamePath |
|
Returns
GetSubFolderPath(string, int)
Declaration
public static string GetSubFolderPath(string strFileNamePath, int portalId)
Parameters
Type |
Name |
Description |
string |
strFileNamePath |
|
int |
portalId |
|
Returns
GetTotalRecords(ref IDataReader)
Declaration
public static int GetTotalRecords(ref IDataReader dr)
Parameters
Returns
GetURLType(string)
Declaration
public static TabType GetURLType(string url)
Parameters
Type |
Name |
Description |
string |
url |
|
Returns
HTTPPOSTEncode(string)
Declaration
public static string HTTPPOSTEncode(string strPost)
Parameters
Type |
Name |
Description |
string |
strPost |
|
Returns
ImportFile(int, string)
Declaration
public static string ImportFile(int portalId, string url)
Parameters
Type |
Name |
Description |
int |
portalId |
|
string |
url |
|
Returns
ImportUrl(int, string)
Declaration
[Obsolete("Deprecated in DotNetNuke 9.8.1. moduleId is not used in the method, use the overload that takes only the url. Scheduled for removal in v11.0.0.")]
public static string ImportUrl(int moduleId, string url)
Parameters
Type |
Name |
Description |
int |
moduleId |
|
string |
url |
|
Returns
ImportUrl(string)
Declaration
public static string ImportUrl(string url)
Parameters
Type |
Name |
Description |
string |
url |
|
Returns
IncrementalVersionExists(Version)
Declaration
[Obsolete("Deprecated in DotNetNuke 9.7.1. Use Dependency Injection to resolve 'DotNetNuke.Abstractions.IApplicationStatusInfo' instead. Scheduled for removal in v11.0.0.")]
public static bool IncrementalVersionExists(Version version)
Parameters
Type |
Name |
Description |
Version |
version |
|
Returns
IsAdminControl()
Declaration
public static bool IsAdminControl()
Returns
IsAdminSkin()
Declaration
public static bool IsAdminSkin()
Returns
IsEditMode()
Declaration
public static bool IsEditMode()
Returns
IsHostTab(int)
Declaration
public static bool IsHostTab(int tabId)
Parameters
Type |
Name |
Description |
int |
tabId |
|
Returns
IsLayoutMode()
Declaration
public static bool IsLayoutMode()
Returns
LinkClick(string, int, int)
Declaration
public static string LinkClick(string link, int tabId, int moduleId)
Parameters
Returns
LinkClick(string, int, int, bool)
Declaration
public static string LinkClick(string link, int tabId, int moduleId, bool trackClicks)
Parameters
Returns
LinkClick(string, int, int, bool, bool)
Declaration
public static string LinkClick(string link, int tabId, int moduleId, bool trackClicks, bool forceDownload)
Parameters
Returns
LinkClick(string, int, int, bool, bool, int, bool, string)
Declaration
public static string LinkClick(string link, int tabId, int moduleId, bool trackClicks, bool forceDownload, int portalId, bool enableUrlLanguage, string portalGuid)
Parameters
Returns
LinkClick(string, int, int, bool, string)
Declaration
public static string LinkClick(string link, int tabId, int moduleId, bool trackClicks, string contentType)
Parameters
Returns
LinkClickURL(string)
Declaration
[Obsolete("Deprecated in DotNetNuke 7.0.0. Use Common.Globals.LinkClick() for proper handling of URLs. Scheduled for removal in v11.0.0.")]
public static string LinkClickURL(string link)
Parameters
Type |
Name |
Description |
string |
link |
|
Returns
LoginURL(string, bool)
Declaration
public static string LoginURL(string returnUrl, bool overrideSetting)
Parameters
Type |
Name |
Description |
string |
returnUrl |
|
bool |
overrideSetting |
|
Returns
LoginURL(string, bool, IPortalSettings)
Declaration
public static string LoginURL(string returnUrl, bool overrideSetting, IPortalSettings portalSettings)
Parameters
Returns
LoginURL(string, bool, PortalSettings)
Declaration
[Obsolete("Deprecated in DotNetNuke 9.8.1. Use the overload that takes IPortalSettings instead. Scheduled for removal in v11.0.0.")]
public static string LoginURL(string returnUrl, bool overrideSetting, PortalSettings portalSettings)
Parameters
Returns
ManageTokenUploadDirectory(string, string, string)
Declaration
public static string ManageTokenUploadDirectory(string strHTML, string strUploadDirectory, string strToken)
Parameters
Returns
ManageUploadDirectory(string, string)
Declaration
public static string ManageUploadDirectory(string strHTML, string strUploadDirectory)
Parameters
Type |
Name |
Description |
string |
strHTML |
|
string |
strUploadDirectory |
|
Returns
NavigateURL()
Declaration
[Obsolete("Deprecated in DotNetNuke 9.4.2. Use INavigationManager via dependency injection. Scheduled for removal in v11.0.0.")]
[Browsable(false)]
public static string NavigateURL()
Returns
NavigateURL(int)
Declaration
[Obsolete("Deprecated in DotNetNuke 9.4.2. Use INavigationManager via dependency injection. Scheduled for removal in v11.0.0.")]
[Browsable(false)]
public static string NavigateURL(int tabID)
Parameters
Type |
Name |
Description |
int |
tabID |
|
Returns
NavigateURL(int, PortalSettings, string, params string[])
Declaration
[Obsolete("Deprecated in DotNetNuke 9.4.2. Use INavigationManager via dependency injection. Scheduled for removal in v11.0.0.")]
[Browsable(false)]
public static string NavigateURL(int tabID, PortalSettings settings, string controlKey, params string[] additionalParameters)
Parameters
Returns
NavigateURL(int, bool)
Declaration
[Obsolete("Deprecated in DotNetNuke 9.4.2. Use INavigationManager via dependency injection. Scheduled for removal in v11.0.0.")]
[Browsable(false)]
public static string NavigateURL(int tabID, bool isSuperTab)
Parameters
Type |
Name |
Description |
int |
tabID |
|
bool |
isSuperTab |
|
Returns
NavigateURL(int, bool, PortalSettings, string, string, string, params string[])
Declaration
[Obsolete("Deprecated in DotNetNuke 9.4.2. Use INavigationManager via dependency injection. Scheduled for removal in v11.0.0.")]
public static string NavigateURL(int tabID, bool isSuperTab, PortalSettings settings, string controlKey, string language, string pageName, params string[] additionalParameters)
Parameters
Returns
NavigateURL(int, bool, PortalSettings, string, string, params string[])
Declaration
[Obsolete("Deprecated in DotNetNuke 9.4.2. Use INavigationManager via dependency injection. Scheduled for removal in v11.0.0.")]
public static string NavigateURL(int tabID, bool isSuperTab, PortalSettings settings, string controlKey, string language, params string[] additionalParameters)
Parameters
Returns
NavigateURL(int, bool, PortalSettings, string, params string[])
Declaration
[Obsolete("Deprecated in DotNetNuke 9.4.2. Use INavigationManager via dependency injection. Scheduled for removal in v11.0.0.")]
[Browsable(false)]
public static string NavigateURL(int tabID, bool isSuperTab, PortalSettings settings, string controlKey, params string[] additionalParameters)
Parameters
Returns
NavigateURL(int, string)
Declaration
[Obsolete("Deprecated in DotNetNuke 9.4.2. Use INavigationManager via dependency injection. Scheduled for removal in v11.0.0.")]
[Browsable(false)]
public static string NavigateURL(int tabID, string controlKey)
Parameters
Type |
Name |
Description |
int |
tabID |
|
string |
controlKey |
|
Returns
NavigateURL(int, string, params string[])
Declaration
[Obsolete("Deprecated in DotNetNuke 9.4.2. Use INavigationManager via dependency injection. Scheduled for removal in v11.0.0.")]
[Browsable(false)]
public static string NavigateURL(int tabID, string controlKey, params string[] additionalParameters)
Parameters
Type |
Name |
Description |
int |
tabID |
|
string |
controlKey |
|
string[] |
additionalParameters |
|
Returns
NavigateURL(string)
Declaration
[Obsolete("Deprecated in DotNetNuke 9.4.2. Use INavigationManager via dependency injection. Scheduled for removal in v11.0.0.")]
[Browsable(false)]
public static string NavigateURL(string controlKey)
Parameters
Type |
Name |
Description |
string |
controlKey |
|
Returns
NavigateURL(string, params string[])
Declaration
[Obsolete("Deprecated in DotNetNuke 9.4.2. Use INavigationManager via dependency injection. Scheduled for removal in v11.0.0.")]
[Browsable(false)]
public static string NavigateURL(string controlKey, params string[] additionalParameters)
Parameters
Type |
Name |
Description |
string |
controlKey |
|
string[] |
additionalParameters |
|
Returns
PreventSQLInjection(string)
Declaration
[Obsolete("Deprecated in DotNetNuke 7.0.0. Use Security Filter functions in the PortalSecurity class. Scheduled for removal in v11.0.0.")]
public static string PreventSQLInjection(string strSQL)
Parameters
Type |
Name |
Description |
string |
strSQL |
|
Returns
QueryStringDecode(string)
Declaration
public static string QueryStringDecode(string queryString)
Parameters
Type |
Name |
Description |
string |
queryString |
|
Returns
QueryStringEncode(string)
Declaration
public static string QueryStringEncode(string queryString)
Parameters
Type |
Name |
Description |
string |
queryString |
|
Returns
Redirect(string, bool)
Declaration
public static void Redirect(string url, bool endResponse)
Parameters
RegisterURL(string, string)
Declaration
public static string RegisterURL(string returnURL, string originalURL)
Parameters
Returns
ResolveUrl(string)
Declaration
public static string ResolveUrl(string url)
Parameters
Type |
Name |
Description |
string |
url |
|
Returns
SerializeHashTableBase64(Hashtable)
Declaration
[Obsolete("Deprecated in DotNetNuke 9.8.1. No replacement. Scheduled for removal in v11.0.0.")]
public static string SerializeHashTableBase64(Hashtable source)
Parameters
Returns
SerializeHashTableXml(Hashtable)
Declaration
[Obsolete("Deprecated in DotNetNuke 9.8.1. This method was never meant to be public and only works for 'profile' root namespace. Scheduled for removal in v11.0.0.")]
public static string SerializeHashTableXml(Hashtable source)
Parameters
Returns
SetApplicationName(int)
Declaration
public static void SetApplicationName(int portalId)
Parameters
Type |
Name |
Description |
int |
portalId |
|
SetApplicationName(string)
Declaration
public static void SetApplicationName(string applicationName)
Parameters
Type |
Name |
Description |
string |
applicationName |
|
Declaration
public static void SetFormFocus(Control control)
Parameters
Type |
Name |
Description |
Control |
control |
|
SetStatus(UpgradeStatus)
Declaration
[Obsolete("Deprecated in DotNetNuke 9.7.1. Use Dependency Injection to resolve 'DotNetNuke.Abstractions.IApplicationStatusInfo' instead. Scheduled for removal in v11.0.0.")]
public static void SetStatus(Globals.UpgradeStatus status)
Parameters
UpdateDataBaseVersion(Version)
Declaration
[Obsolete("Deprecated in DotNetNuke 9.7.1. Use Dependency Injection to resolve 'DotNetNuke.Abstractions.IApplicationStatusInfo' instead. Scheduled for removal in v11.0.0.")]
public static void UpdateDataBaseVersion(Version version)
Parameters
Type |
Name |
Description |
Version |
version |
|
UpdateDataBaseVersionIncrement(Version, int)
Declaration
[Obsolete("Deprecated in DotNetNuke 9.7.1. Use Dependency Injection to resolve 'DotNetNuke.Abstractions.IApplicationStatusInfo' instead. Scheduled for removal in v11.0.0.")]
public static void UpdateDataBaseVersionIncrement(Version version, int increment)
Parameters
Type |
Name |
Description |
Version |
version |
|
int |
increment |
|
UsePortNumber()
Declaration
public static bool UsePortNumber()
Returns
Declaration
[Obsolete("Deprecated in DotNetNuke 7.3.0. It causes issues in SSL-offloading scenarios - please use UserProfilePicRelativeUrl instead. Scheduled for removal in v11.0.0.")]
public static string UserProfilePicFormattedUrl()
Returns
UserProfilePicRelativeUrl()
Declaration
[Obsolete("Deprecated in DotNetNuke 8.0.0. Please use UserController.Instance.GetUserProfilePictureUrl. Scheduled for removal in v11.0.0.")]
public static string UserProfilePicRelativeUrl()
Returns
UserProfilePicRelativeUrl(bool)
Declaration
[Obsolete("Deprecated in DotNetNuke 8.0.0. Please use UserController.Instance.GetUserProfilePictureUrl. Scheduled for removal in v11.0.0.")]
public static string UserProfilePicRelativeUrl(bool includeCdv)
Parameters
Type |
Name |
Description |
bool |
includeCdv |
|
Returns
UserProfileURL(int)
Declaration
public static string UserProfileURL(int userId)
Parameters
Type |
Name |
Description |
int |
userId |
|
Returns
ValidateLoginTabID(int)
Declaration
public static bool ValidateLoginTabID(int tabId)
Parameters
Type |
Name |
Description |
int |
tabId |
|
Returns
ValidateModuleInTab(int, string)
Declaration
public static bool ValidateModuleInTab(int tabId, string moduleName)
Parameters
Type |
Name |
Description |
int |
tabId |
|
string |
moduleName |
|
Returns
XMLEncode(string)
Declaration
[Obsolete("Deprecated in DotNetNuke 7.0.0. This function has been replaced by DotNetNuke.Common.Utilities.XmlUtils.XMLEncode. Scheduled for removal in v11.0.0.")]
public static string XMLEncode(string html)
Parameters
Type |
Name |
Description |
string |
html |
|
Returns
Extension Methods