Esempio n. 1
0
 public void RenderHtmlAttribute(IHtmlWriter writer, IDotvvmRequestContext requestContext, string attributeName, object attributeValue)
 {
     if (attributeValue != null)
     {
         attributeValue = requestContext.TranslateVirtualPath((string)attributeValue);
     }
     writer.WriteHtmlAttribute(attributeName, (string)attributeValue);
 }
Esempio n. 2
0
 public virtual void WriteHtmlAttribute(string name, string value)
 {
     if (validator.CheckAttribute(name, value))
     {
         Attributes.Add(name, value);
         writer.WriteHtmlAttribute(name, value);
     }
 }
 public void RenderHtmlAttribute(IHtmlWriter writer, IDotvvmRequestContext requestContext, string attributeName, object attributeValue)
 {
     if (attributeValue != null)
         attributeValue = requestContext.TranslateVirtualPath((string)attributeValue);
     writer.WriteHtmlAttribute(attributeName, (string)attributeValue);
 }
 public void RenderHtmlAttribute(IHtmlWriter writer, DotvvmRequestContext requestContext, string attributeName, string attributeValue)
 {
     attributeValue = requestContext.TranslateVirtualPath(attributeValue);
     writer.WriteHtmlAttribute(attributeName, attributeValue);
 }