FieldTemplateFactory.GetFieldTemplateVirtualPath Method (MetaColumn, DataBoundControlMode, String)

 

Determines the virtual path of a field template.

Namespace:   System.Web.DynamicData
Assembly:  System.Web.DynamicData (in System.Web.DynamicData.dll)

public virtual string GetFieldTemplateVirtualPath(
	MetaColumn column,
	DataBoundControlMode mode,
	string uiHint
)

Parameters

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-Read Only, Edit, or Insert.

uiHint
Type: System.String

Specifies the field template to use. This parameter affects the field template look up.

Return Value

Type: System.String

The virtual path of the field template.

Dynamic Data field templates are created in the DynamicData/FieldTemplates/ folder but you can create a new folder for your field templates. This method determines the virtual path for the folder that contains the field template using the specified parameters.

.NET Framework
Available since 3.5
Return to top
Show: