This document is provided on an "AS IS" basis without warranties of any kind. Smartsite iXperion class libraries may change in future releases.
Gets the location of the page on which the Smartlet is rendered.

Namespace: Smartsite.Scf
Assembly:  Smartsite.Scf (in Smartsite.Scf.dll)

Syntax

C#Copy imageCopy Code
[(Name = "{0}.Page")]
[(.Level0)]
public static  CurrentSmartletGetInstanceLocation(
	 context
)
Visual Basic (Declaration)Copy imageCopy Code
<(Name := "{0}.Page")> _
<(.Level0)> _
Public Shared Function CurrentSmartletGetInstanceLocation ( _
	context As  _
) As 

Parameters

context
IRenderContext
The context.

Field Value

The instance location.

Return Value

Locator

Remarks

Use this viper method instead of itemdata.number() to avoid problems when Smartlet code is called in Ajax callback scenarios.

See Also

Smartlet Class
Smartsite.Scf Namespace
Advanced