public bool RenderProperty(HtmlTextWriter writer, PropertyMetadata property) { if(string.IsNullOrWhiteSpace(property.AttributeValue)) property.AttributeValue = "javascript:;"; else property.AttributeValue = property.Control.ResolveUrl(property.AttributeValue); return false; }
public bool RenderProperty(HtmlTextWriter writer, PropertyMetadata property) { bool value; if(Zongsoft.Common.Convert.TryConvertValue(property.Value, out value) && (value == _renderValue)) writer.AddAttribute(property.AttributeName, property.AttributeName); return true; }