Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDuncan Mak <duncan@mono-cvs.ximian.com>2002-05-10 21:22:55 +0400
committerDuncan Mak <duncan@mono-cvs.ximian.com>2002-05-10 21:22:55 +0400
commit47f3a806b14567c9a555da46821d94076602a7f8 (patch)
tree87f709befbda7c66cad02adcf53dde5c27bce2ed
parent1c42a68366696f6cc197d930931914c796e4250d (diff)
2002-05-10 Duncan Mak <duncan@ximian.com>
* HtmlTableCellCollection.cs (this): Updated the indexer to return the right type, HtmlTableCell instead of HtmlTableRow. * TagPrefixAttribute.cs: Added to CVS. svn path=/trunk/mcs/; revision=4491
-rw-r--r--mcs/class/System.Web/System.Web.UI.HtmlControls/ChangeLog3
-rwxr-xr-xmcs/class/System.Web/System.Web.UI.HtmlControls/HtmlTableCellCollection.cs4
-rw-r--r--mcs/class/System.Web/System.Web.UI/ChangeLog4
-rwxr-xr-xmcs/class/System.Web/System.Web.UI/TagPrefixAttribute.cs37
4 files changed, 46 insertions, 2 deletions
diff --git a/mcs/class/System.Web/System.Web.UI.HtmlControls/ChangeLog b/mcs/class/System.Web/System.Web.UI.HtmlControls/ChangeLog
index 92478d12eda..99a47caa63d 100644
--- a/mcs/class/System.Web/System.Web.UI.HtmlControls/ChangeLog
+++ b/mcs/class/System.Web/System.Web.UI.HtmlControls/ChangeLog
@@ -1,5 +1,8 @@
2002-05-10 Duncan Mak <duncan@ximian.com>
+ * HtmlTableCellCollection.cs (this): Updated the indexer to return
+ the right type, HtmlTableCell instead of HtmlTableRow.
+
* HtmlInputImage.cs (OnServerClick): Commented out parts that
won't compile.
diff --git a/mcs/class/System.Web/System.Web.UI.HtmlControls/HtmlTableCellCollection.cs b/mcs/class/System.Web/System.Web.UI.HtmlControls/HtmlTableCellCollection.cs
index 9deaf2f0584..e6926f10eb7 100755
--- a/mcs/class/System.Web/System.Web.UI.HtmlControls/HtmlTableCellCollection.cs
+++ b/mcs/class/System.Web/System.Web.UI.HtmlControls/HtmlTableCellCollection.cs
@@ -67,9 +67,9 @@ namespace System.Web.UI.HtmlControls{
}
}
- public HtmlTableRow this[int index] {
+ public HtmlTableCell this[int index] {
get{
- return (HtmlTableRow) _owner.Controls[index];
+ return _owner.Controls[index] as HtmlTableCell;
}
}
diff --git a/mcs/class/System.Web/System.Web.UI/ChangeLog b/mcs/class/System.Web/System.Web.UI/ChangeLog
index 1ae9e8af7b7..97ac3b581b4 100644
--- a/mcs/class/System.Web/System.Web.UI/ChangeLog
+++ b/mcs/class/System.Web/System.Web.UI/ChangeLog
@@ -1,3 +1,7 @@
+2002-05-10 Duncan Mak <duncan@ximian.com>
+
+ * TagPrefixAttribute.cs: Added to CVS.
+
2002-05-07 Duncan Mak <duncan@ximian.com>
* Utils.cs (GetClientValidatedEvent): Uncommented the 'Page' argument.
diff --git a/mcs/class/System.Web/System.Web.UI/TagPrefixAttribute.cs b/mcs/class/System.Web/System.Web.UI/TagPrefixAttribute.cs
new file mode 100755
index 00000000000..0dc56d241f5
--- /dev/null
+++ b/mcs/class/System.Web/System.Web.UI/TagPrefixAttribute.cs
@@ -0,0 +1,37 @@
+//
+// System.Web.UI.TagPrefixAttribute.cs
+//
+// Duncan Mak (duncan@ximian.com)
+//
+// (C) Ximian, Inc.
+//
+
+using System;
+
+namespace System.Web.UI {
+
+ [AttributeUsage (AttributeTargets.Assembly)]
+ public sealed class TagPrefixAttribute : Attribute
+ {
+ string namespaceName;
+ string tagPrefix;
+
+ public TagPrefixAttribute (string namespaceName,
+ string tagPrefix)
+ {
+ if (namespaceName == null || tagPrefix == null)
+ throw new ArgumentNullException ();
+
+ this.namespaceName = namespaceName;
+ this.tagPrefix = tagPrefix;
+ }
+
+ public string NamespaceName {
+ get { return namespaceName; }
+ }
+
+ public string TagPrefix {
+ get { return tagPrefix; }
+ }
+ }
+}