HttpHost 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.
Renders the URL to the Web application containing the current SharePoint Web site, such as http://server.
<HttpHost
HTMLEncode = "TRUE | "FALSE"
URLEncodeAsURL = "TRUE | "FALSE">
</HttpHost>
Attributes
Attribute |
Description |
---|---|
HTMLEncode |
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. |
URLEncodeAsURL |
Optional Boolean. Like URLEncode, but 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
As an example, My server is <HttpHost/> returns the following: 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>