fixed: when removed the names from the bag also removed FontStyles.Names flag from...
[mono.git] / mcs / class / System.Web / System.Web.UI.WebControls / TableStyle.cs
index 8ed44b3173b855deacf9150040caf25b2765466c..c7debcf0ed2bb50b167f1ad300ab7dbc02aafb20 100644 (file)
@@ -227,8 +227,10 @@ namespace System.Web.UI.WebControls {
                        string s = BackImageUrl;
                        if (s.Length > 0) {
                                if (owner != null)
-                                       s = owner.ResolveUrl (s);
-#if ONLY_1_1
+                                       s = owner.ResolveClientUrl (s);
+#if NET_2_0
+                               s = s.Replace (" ", "%20");
+#else
                                s = String.Concat ("url(", s, ")");
 #endif
                                writer.AddStyleAttribute (HtmlTextWriterStyle.BackgroundImage, s);