Fixes #28696: Macro Container bug: Can't handle bool/checkboxes

[TFS Changeset #80524]
This commit is contained in:
starfighter83
2010-11-24 11:54:12 +00:00
parent 8d3d2fff28
commit 730ded46a6

View File

@@ -38,30 +38,17 @@ namespace umbraco.macroRenderings
protected override void OnInit(EventArgs e)
{
if (_value != null)
{
if (_value == "1")
this.Checked = true;
else
this.Checked = false;
}
this.Text = "Yes";
base.OnInit (e);
}
/// <summary>
/// Render this control to the output parameter specified.
/// </summary>
/// <param name="output"> The HTML writer to write out to </param>
protected override void Render(HtmlTextWriter output)
{
if (_value != null)
{
if (_value == "1")
{
this.Checked = true;
}
else
{
this.Checked = false;
}
}
base.Render(output);
}
}
}