<input id="IsDiscount" type="checkbox" @(Model != null && Model.IsDiscount == "Y" ? "checked=\"checked\"" : "") defaultvalue="True" name="IsDiscount" style="margin-left: 13px;"> @(Model != null && Model.IsDiscount == "Y" ? "checked=\"checked\"" : "")
原文:http://www.cnblogs.com/runliuv/p/5855847.html