This documentation is archived and is not being maintained.

Column2 Element

SharePoint Team Services 1.1

The Column2 element is used in rendering a Link field type. In SharePoint Team Services from Microsoft, hyperlinks are stored as two separate values. The actual URL value is stored in one part, and the descriptive text is stored in another. In a Link field, <Column/> returns the value of the URL, and <Column2/> returns the descriptive text of the hyperlink.


  HTMLEncode = "TRUE" | "FALSE">


HTMLEncodeOptional Boolean. Converts embedded characters so that they are displayed as text in the browser. In other words, characters that could be confused with HTML tags are converted to entities.

Related Elements

Parent Elements
Case, Default, Expr, ScriptQuote


The following Switch statement evaluates the Column2 value and, if it's empty, sets the HTML encoding of the Column element value (in other words, of the URL) to TRUE. Otherwise, it sets the HTML encoding of the URL's descriptive text to TRUE.

  <Case Value="">
    <Column HTMLEncode="TRUE"/>
    <Column2 HTMLEncode="TRUE"/>

See Also


Universal Attributes for Page Rendering Elements