Export (0) Print
Expand All

HttpVDir Element (View)

Last modified: July 15, 2011

Applies to: SharePoint Foundation 2013 | SharePoint Server 2013

In this article
Attributes
Child Elements
Parent Elements
Occurrences

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>

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.

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.

<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>
Show:
© 2014 Microsoft