Esempio n. 1
0
		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;
		}
Esempio n. 2
0
		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;
		}