Export (0) Print
Expand All

UrlBaseName Element (View)

Last modified: May 30, 2008

Applies to: SharePoint Foundation 2010

In this article
Child Elements
Parent Elements

Renders the base name of a particular URL.

  HTMLEncode = "TRUE" | "FALSE">




Optional Boolean. TRUE to convert 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.

Minimum: 0

Maximum: Unbounded

This element is particularly useful in document library views.

Remember that Collaborative Application Markup Language (CAML) is case-sensitive; note the lowercase "rl" in UrlBaseName.

The following example uses the UrlBaseName element to construct the absolute URL for a thumbnail image in a picture library.

   <HttpHost />
      <LookupColumn URLEncodeAsURL="TRUE" Name="FileRef" />
      <Field Name="EncodedAbsUrl" />
      <Field Name="EncodedAbsUrl" />

If the image file has a .jpg extension and is contained in a picture library on a subsite, the example creates a URL in the following form:


© 2015 Microsoft