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 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); }