DataControlFieldDesigner::GetNewDataSourceName Method (Type^, DataBoundControlMode)

 

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

Namespace:   System.Web.UI.Design.WebControls
Assembly:  System.Design (in System.Design.dll)

protected:
String^ GetNewDataSourceName(
	Type^ controlType,
	DataBoundControlMode mode
)

Parameters

controlType
Type: System::Type^

The type of the control that will be created.

mode
Type: System.Web.UI.WebControls::DataBoundControlMode

The data entry mode for the control.

Return Value

Type: System::String^

A unique ID for the control.

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.

.NET Framework
Available since 2.0
Return to top
Show: