System.Web.UI.Design.MdbDataFileEditor Class

Provides a design-time user interface for selecting a Microsoft Access database file.

See Also: MdbDataFileEditor Members

Syntax

public class MdbDataFileEditor : UrlEditor

Remarks

An System.Web.UI.Design.MdbDataFileEditor object is used at design time to select and edit a URL for a Microsoft Access database file (.mdb), and then assign the URL to a control property. For example, the System.Web.UI.WebControls.AccessDataSource control uses the System.Web.UI.Design.MdbDataFileEditor class at design time to set the value of the System.Web.UI.WebControls.AccessDataSource.DataFile property.

Use the System.ComponentModel.EditorAttribute attribute to associate the System.Web.UI.Design.MdbDataFileEditor with a property. When the associated property is edited on the design surface, the designer host calls the erload:System.Web.UI.Design.UrlEditor.EditValue method. The erload:System.Web.UI.Design.UrlEditor.EditValue method uses the erload:System.Web.UI.Design.UrlBuilder.BuildUrl method, which in turn displays a user interface for selecting the URL, and then returns the URL that is selected by the user. The erload:System.Web.UI.Design.UrlEditor.GetEditStyle method indicates the display style of the user interface.

Derive a class from the System.Web.UI.Design.MdbDataFileEditor to define a custom editor for an Access database URL property. For example, a derived class can override the erload:System.Web.UI.Design.UrlEditor.EditValue method, and then call the erload:System.Web.UI.Design.UrlBuilder.BuildUrl method with a custom MdbDataFileEditor.Filter or MdbDataFileEditor.Caption value.

Requirements

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