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:
authorGonzalo Paniagua Javier <gonzalo.mono@gmail.com>2004-09-28 04:27:59 +0400
committerGonzalo Paniagua Javier <gonzalo.mono@gmail.com>2004-09-28 04:27:59 +0400
commitf30f84f69068ab4a4de4b5ec1e5119cd9154fefc (patch)
tree3d766c9449fa134a43147087c6fd14c2266a389a /mcs/class/System.Web/System.Web.UI.WebControls/TableStyle.cs
parent2e1d58d56ed6317cd5a636a6714e0ced5a308767 (diff)
2004-09-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
* TableStyle.cs: don't render empty 'rules' attribute (again). svn path=/trunk/mcs/; revision=34456
Diffstat (limited to 'mcs/class/System.Web/System.Web.UI.WebControls/TableStyle.cs')
-rw-r--r--mcs/class/System.Web/System.Web.UI.WebControls/TableStyle.cs4
1 files changed, 3 insertions, 1 deletions
diff --git a/mcs/class/System.Web/System.Web.UI.WebControls/TableStyle.cs b/mcs/class/System.Web/System.Web.UI.WebControls/TableStyle.cs
index 413b8a0745c..a1653a11928 100644
--- a/mcs/class/System.Web/System.Web.UI.WebControls/TableStyle.cs
+++ b/mcs/class/System.Web/System.Web.UI.WebControls/TableStyle.cs
@@ -171,7 +171,7 @@ namespace System.Web.UI.WebControls
{
writer.AddAttribute(HtmlTextWriterAttribute.Align, Enum.Format(typeof(HorizontalAlign), HorizontalAlign, "G"));
}
- string gd = String.Empty;
+ string gd = null;
switch(GridLines)
{
case GridLines.None: break;
@@ -182,6 +182,8 @@ namespace System.Web.UI.WebControls
case GridLines.Both: gd = "all";
break;
}
+
+ if (gd != null)
writer.AddAttribute(HtmlTextWriterAttribute.Rules, gd);
}