|
|
@@ -31,8 +31,11 @@
|
|
|
#if NET_2_0
|
|
|
|
|
|
using System.IO;
|
|
|
+using System.ComponentModel;
|
|
|
|
|
|
namespace System.Web.UI.WebControls {
|
|
|
+ [ DesignerAttribute ("System.Web.UI.Design.WebControls.AccessDataSourceDesigner, System.Design",
|
|
|
+ "System.ComponentModel.Design.IDesigner")]
|
|
|
public class AccessDataSource : SqlDataSource
|
|
|
{
|
|
|
string dataFile;
|
|
|
@@ -81,6 +84,8 @@ namespace System.Web.UI.WebControls {
|
|
|
//Overrid implementation will depend on how .Net stores data in
|
|
|
//Cache property of HttpContext object.
|
|
|
|
|
|
+ [BrowsableAttribute (false),
|
|
|
+ DesignerSerializationVisibilityAttribute (DesignerSerializationVisibility.Hidden)]
|
|
|
public override string ConnectionString {
|
|
|
get { return this.ConnectionString; }
|
|
|
set { throw new InvalidOperationException
|
|
|
@@ -88,6 +93,11 @@ namespace System.Web.UI.WebControls {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ [UrlPropertyAttribute (), DefaultValueAttribute (""),
|
|
|
+ WebCategoryAttribute ("Data"),
|
|
|
+ WebSysDescriptionAttribute ("MS Office Access database file name"),
|
|
|
+ EditorAttribute ("System.Web.UI.Design.MdbDataFileEditor, System.Design",
|
|
|
+ "System.Drawing.Design.UITypeEditor, System.Drawing")]
|
|
|
public string DataFile {
|
|
|
get { return dataFile; }
|
|
|
set { dataFile = value; }
|
|
|
@@ -96,6 +106,8 @@ namespace System.Web.UI.WebControls {
|
|
|
//Need to dig more on this.
|
|
|
}
|
|
|
|
|
|
+ [BrowsableAttribute (false),
|
|
|
+ DesignerSerializationVisibilityAttribute (DesignerSerializationVisibility.Hidden)]
|
|
|
public override string ProviderName {
|
|
|
get { return this.ProviderName; }
|
|
|
set { throw new InvalidOperationException
|