【发布时间】:2013-05-27 08:37:30
【问题描述】:
我需要在第一个"if(){}" 中输入"BeginForm" 的开头,在第二个"if(){}" 中输入“BeginForm”的结尾
喜欢这个
if (true) { @Html.Raw("<form>"); } .. if (true) { @Html.Raw("</form>"); }
如何使用 Ajax.BeginForm() 来做到这一点?
【问题讨论】:
我需要在第一个"if(){}" 中输入"BeginForm" 的开头,在第二个"if(){}" 中输入“BeginForm”的结尾
喜欢这个
if (true) { @Html.Raw("<form>"); } .. if (true) { @Html.Raw("</form>"); }
如何使用 Ajax.BeginForm() 来做到这一点?
【问题讨论】:
尝试以下方法:
if (true) { @Html.Raw("<form data-ajax="true" data-ajax-mode="replace">"); } .. if (true) { @Html.Raw("</form>"); }
【讨论】: