Get Url for the equivalent mobile site based on the current page of the full site

Namespace: DotNetNuke.Services.Mobile
Assembly: DotNetNuke (in DotNetNuke.dll)

Syntax

C#
public string GetMobileSiteUrl(
	int portalId,
	int currentTabId
)
Visual Basic
Public Function GetMobileSiteUrl ( 
	portalId As Integer,
	currentTabId As Integer
) As String

Parameters

portalId
Type: System..::..Int32
Portal Id from which Redirection Rules should be applied.
currentTabId
Type: System..::..Int32
Current Tab Id that needs to be evaluated.

Return Value

string - Empty if redirection rules are not defined or no match found

Implements

IRedirectionController..::..GetMobileSiteUrl(Int32, Int32)

See Also