This documentation is archived and is not being maintained.
DataControlFieldDesigner::GetNewDataSourceName Method
Visual Studio 2010
Gets an unique ID for a control that is created when a data field is converted into a TemplateField.
Assembly: System.Design (in System.Design.dll)
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.
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.
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
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: