importing messaging-2008 branch to trunk.
[mono.git] / mcs / class / System.Web / System.Web.UI.HtmlControls / HtmlControl.cs
index c4f2476628f3e057a17ccda94fb8e8df4b24aea5..f708b2ea3d47f335f249bcaa58d17d7f076a9453 100644 (file)
@@ -45,7 +45,7 @@ namespace System.Web.UI.HtmlControls{
        public abstract class HtmlControl : Control, IAttributeAccessor
        {
                internal string _tagName;
-               private AttributeCollection _attributes;
+               AttributeCollection _attributes;
 
                
 #if NET_2_0
@@ -85,12 +85,12 @@ namespace System.Web.UI.HtmlControls{
                        if (attr != null){
                                if (attr.Length != 0){
                                        try{
-                                               attr = ResolveUrl(attr);
+                                               attr = ResolveClientUrl(attr);
                                        }
                                        catch (Exception) {
                                                throw new HttpException(attribName + " property had malformed url");
                                        }
-                                       writer.WriteAttribute(attribName, attr);
+                                       writer.WriteAttribute(attribName, attr, true);
                                        Attributes.Remove(attribName);
                                }
                        }