internal string CheckboxItem(int index, string target, string suffix, SetItem item, IDictionary attributes)
{
if (item.IsSelected)
{
AddChecked(attributes);
}
else
{
RemoveChecked(attributes);
}
target = String.Format("{0}[{1}]", target, index);
string elementId = CreateHtmlId(attributes, target, true);
string computedTarget = target;
if (suffix != null && suffix != String.Empty)
{
computedTarget += "." + suffix;
}
return CreateInputElement("checkbox", elementId, computedTarget, item.Value, attributes);
}