Export (0) Print
Expand All

MapToControl Element (View)

Last modified: May 30, 2008

Applies to: SharePoint Foundation 2010

In this article
Attributes
Child Elements
Parent Elements
Occurrences

Returns the name of the application in which a document can be edited based on the file name extension and ProgID.


<MapToControl>
      ProgID|File_Extension
</MapToControl>

Attribute

Description

None

N/A

Minimum: 0

Maximum: Unbounded

The MapToControl element uses the following syntax, separating the ProgID from the file name extension with a pipe symbol ("|"):

<MapToControl>ProgID|File_Extension </MapToControl>

The following example uses the MapToControl element to assign the name of the application to an Editor variable.

<SetVar Name="Editor" Scope="Request">
   <MapToControl>
      <Column Name="HTML_x0020_File_x0020_Type" />
      <HTML>|</HTML>
      <Column Name="File_x0020_Type" />
   </MapToControl>
</SetVar>
Show:
© 2015 Microsoft