DataControlFieldDesigner.GetNewDataSourceName Method

Definition

Gets an unique ID for a control that is created when a data field is converted into a TemplateField.

protected string GetNewDataSourceName(Type controlType, System.Web.UI.WebControls.DataBoundControlMode mode);

Parameters

controlType
Type

The type of the control that will be created.

mode
DataBoundControlMode

The data entry mode for the control.

Returns

A unique ID for the control.

Remarks

The GetNewDataSourceName method is a helper method that can be used by the CreateTemplateField method to generate unique IDs for the controls that are created when you click the link to convert a data field into a TemplateField in the fields editor.

Applies to

Produkt Verze
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1