System.Web.UI.Design.ConnectionStringEditor Class

Provides a base class for a user interface to select and edit a connection string property at design time.

See Also: ConnectionStringEditor Members


public class ConnectionStringEditor : System.Drawing.Design.UITypeEditor


An instance of the System.Web.UI.Design.ConnectionStringEditor class is a System.Drawing.Design.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. For example, the System.Web.UI.WebControls.SqlDataSource control uses the System.Web.UI.Design.ConnectionStringEditor class at design time to set the value of the System.Web.UI.WebControls.SqlDataSource.ConnectionString property.

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


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