Url's as internal links to Files, Tabs and Users should only be imported if those files, tabs and users exist. This function parses the url, and checks whether the internal links exist. If the link does not exist, the function will return an empty string

Namespace: DotNetNuke.Common
Assembly: DotNetNuke (in DotNetNuke.dll)

Syntax

C#
public static string ImportUrl(
	int ModuleId,
	string url
)
Visual Basic
Public Shared Function ImportUrl ( 
	ModuleId As Integer,
	url As String
) As String

Parameters

ModuleId
Type: System..::..Int32
Integer
url
Type: System..::..String
String

Return Value

If an internal link does not exist, an empty string is returned, otherwise the passed in url is returned as is

See Also