diff options
author | Andrew Skiba <andrews@mono-cvs.ximian.com> | 2006-08-14 20:05:27 +0400 |
---|---|---|
committer | Andrew Skiba <andrews@mono-cvs.ximian.com> | 2006-08-14 20:05:27 +0400 |
commit | 7a4996a4cb2cae4b9ca8742fb32e1bc2952aff60 (patch) | |
tree | 64f4309dd273805ae100d01a90c9ea3b092ca1ef /mcs/class/System.Web/System.Web.UI.WebControls/TableStyle.cs | |
parent | 74a14e20f598cbd94fbeb4e5e8a146319504cccd (diff) |
use ResolveClientUrl instead of ResolveUrl to be complient with MS.NET
svn path=/trunk/mcs/; revision=63728
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.cs | 6 |
1 files changed, 4 insertions, 2 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 8ed44b3173b..c7debcf0ed2 100644 --- a/mcs/class/System.Web/System.Web.UI.WebControls/TableStyle.cs +++ b/mcs/class/System.Web/System.Web.UI.WebControls/TableStyle.cs @@ -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); |