HttpVDir Element (View)

Last modified: March 09, 2015

Applies to: SharePoint Foundation 2010

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

  CurrentWeb = "TRUE" | "FALSE"
  URLEncode = "TRUE" | "FALSE"
  URLEncodeAsURL = "TRUE" | "FALSE">




Optional Boolean.


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


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

Minimum: 0

Maximum: Unbounded

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.

      <TABLE class="ms-summarystandardbody" width="100%" border=0 
         <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>
      /_layouts/images/blank.gif" width="1" height="8" alt="">