This documentation is archived and is not being maintained.
FieldTemplateFactory::BuildVirtualPath Method
Visual Studio 2010
Builds the virtual path to a field template based on the field template name and the mode.
Assembly: System.Web.DynamicData (in System.Web.DynamicData.dll)
public: virtual String^ BuildVirtualPath( String^ templateName, MetaColumn^ column, DataBoundControlMode mode )
Parameters
- templateName
- Type: System::String
The name of the template to use.
- column
- Type: System.Web.DynamicData::MetaColumn
Specifies the data column which the field template applies to.
- mode
- Type: System.Web.UI.WebControls::DataBoundControlMode
Specifies the display mode of the field template.
| Exception | Condition |
|---|---|
| ArgumentNullException | templateName is null. |
By default, this method builds the virtual path to a field template by using the template name, appending the mode and then adding a .ascx extension. For example, if templateName is MyFieldTemplate and mode is Edit, then the virtual path will be MyFieldTemplate_Edit.ascx, in the folder specified by the Template folder virtual path.
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Show: