Export (0) Print
Expand All

SqlDataSourceConnectionStringEditor Class

Provides a user interface for selecting and editing a connection string property of a SqlDataSource object at design time.

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

public class SqlDataSourceConnectionStringEditor : ConnectionStringEditor
public class SqlDataSourceConnectionStringEditor extends ConnectionStringEditor
public class SqlDataSourceConnectionStringEditor extends ConnectionStringEditor
Not applicable.

The SqlDataSourceConnectionStringEditor class is a UITypeEditor object that can be used at design time to select and edit a connection string expression and to assign the expression to a control property. The SqlDataSource object uses the SqlDataSourceConnectionStringEditor class at design time to set the value of the ConnectionString property.

If an IDataEnvironment interface is available, connection strings are retrieved from the data services of the visual designer. If an IDataEnvironment interface is not available, a modal dialog box is shown to allow editing of the connection string.

Use the EditorAttribute attribute to associate the SqlDataSourceConnectionStringEditor with a property. When the associated property is edited on the design surface, the designer host calls the EditValue method. The EditValue method displays a user interface for building the connection string expression and returns the connection string that is selected by the user. The GetEditStyle method indicates the display style of the user interface.

System.Object
   System.Drawing.Design.UITypeEditor
     System.Web.UI.Design.ConnectionStringEditor
      System.Web.UI.Design.WebControls.SqlDataSourceConnectionStringEditor

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Windows 98, Windows Server 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0

Community Additions

ADD
Show:
© 2014 Microsoft