HttpHost Element
The HttpHost element renders the URL to the virtual server containing the current SharePoint team Web site, such as http://server
.
Syntax
<HttpHost
HTMLEncode = "TRUE | "FALSE"
URLEncodeAsURL = "TRUE | "FALSE">
</HttpHost>
Attributes
Name | Description |
---|---|
HTMLEncode | Optional 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. |
URLEncodeAsURL | Optional Boolean. TRUE if special characters, such as spaces, are converted to quoted Unicode format (e.g. %u0020) in a path component of a URL. |
Related Elements
Parent Elements |
---|
Default, DisplayPattern, RenderPattern, ScriptQuote, ViewBody |
Example
As an example, My server is <HttpHost/>
returns: My server is http://someservername.com
.
The following example constructs an opening <A> tag, using the HttpHost element to return the server path.
<HTML>
<![CDATA[ <a href=" ]]>
</HTML>
<HttpHost URLEncodeAsURL="TRUE" />
<LookupColumn URLEncodeAsURL="TRUE" />
<HTML>
<![CDATA[ "> ]]>
</HTML>