Share via


HttpVDir Element (View)

This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This page may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.

Returns the root directory of the current subsite. For example, for http://myserver/myweb/default.aspx, the HttpVDir element would return http://myserver/myweb/.

<HttpVDir
  CurrentWeb = "TRUE" | "FALSE"
  URLEncode = "TRUE" | "FALSE"
  URLEncodeAsURL = "TRUE" | "FALSE">
</HttpVDir>

Attributes

Attribute

Description

CurrentWeb

Optional Boolean.

URLEncode

Optional Boolean. TRUE to convert special characters, such as spaces, to quoted UTF-8 format (for example, %c3%ab for character ë).

URLEncodeAsURL

Optional Boolean. TRUE to specify that the string to encode is a path component of a URL so that forward slashes ("/") are not encoded.

Child Elements

None

Parent Elements

Numerous

Occurrences

Minimum: 0

Maximum: Unbounded

Example

The following example defines the More Items link to display when the number of items in the list exceeds the limit set with the RowLimit element for number of items to display on a page. The example uses the HttpVDir element to construct the full path for an image file.

<RowLimitExceeded>
   <HTML><![CDATA[ 
      <TABLE class="ms-summarystandardbody" width="100%" border=0 
            rules=rows>
         <TR><TD Class="ms-vb"><a href="]]></HTML>
   <ListProperty Select="DefaultViewUrl"/>
   <HTML><![CDATA[ " ID=onetidMore>]]></HTML>
   <HTML>(More Items...)</HTML>
   <HTML><![CDATA[</a></TD></TR><tr><td height="8"><img src="]]></HTML>
   <HttpVDir/>
   <HTML><![CDATA[
      /_layouts/images/blank.gif" width="1" height="8" alt="">
      </td></tr></TABLE>]]></HTML>
</RowLimitExceeded>

See Also

Reference

HTMLBase Element

HttpPath Element (View)