Documentation Center

Context Variable

Render the value of a variable. This tag only needs to be used in ASP.NET; In JSP, you can simply enclose the variable in variable delimiters ${ and }.

LanguageCommand
ASP.NET Server Control<ugc:ContextVariable runat="server">
JSP Custom Tag(n/a)
TCDL tag(n/a)

Attributes

Attribute nameDescription
Var
The name of a variable you wish to render. This string consists of the following:
  • the value given to the Var attribute in the enclosing UGC tag, or the default variable name for that tag if Var is not specified in the enclosing UGC tag
  • a dot
  • the name of one of the properties returned by the enclosing tag

For example, you might set Var to the value ugcItemStats.numberOfRatings.