System.Web.UI.WebControls.SqlDataSource.ProviderName Property

Gets or sets the name of the .NET Framework data provider that the System.Web.UI.WebControls.SqlDataSource control uses to connect to an underlying data source.

Syntax

[System.ComponentModel.TypeConverter("System.Web.UI.Design.WebControls.DataProviderNameConverter, System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
[System.ComponentModel.DefaultValue("")]
public virtual string ProviderName { set; get; }

Value

Documentation for this section has not yet been entered.

Remarks

The .NET Framework includes the following data providers:

The SqlDataSource.ProviderName property is never set to the name of an unmanaged ADO.NET provider, such as MSDAORA. For more information, see Selecting Data using the SqlDataSource Control.

If you change the SqlDataSource.ProviderName property, the System.Web.UI.IDataSource.DataSourceChanged event is raised, causing any controls that are bound to the System.Web.UI.WebControls.SqlDataSource to rebind.

A list of available providers is specified in the DbProviderFactories subsection of the system.data section of the Machine.config file.

Requirements

Namespace: System.Web.UI.WebControls
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0