using System; using System.Text; namespace Zhaizj.Framework.SOA.Controls { internal class StringCheckbox : ParamControl, IListControl { public override String Html { get { StringBuilder builder = new StringBuilder(); builder.Append( "" ); builder.Append( base.Label ); builder.Append( " " ); foreach (String str in this.Options) { builder.AppendFormat( "{0} ", str ); } else { builder.AppendFormat( "/>{0} ", str ); } } builder.Append( "" ); return builder.ToString(); } } public String[] Options { get; set; } public override Type Type { get { return typeof( String ); } } } }