如何创建模态asp.net表格?

时间:2018-10-25 03:50:40

标签: c# twitter-bootstrap asp.net-core asp.net-core-mvc

是否可以在模式中使用标准的asp.net表单?

<div class="modal-dialog modal-dialog-centered modal-lg">
    <div class="modal-content">
        <div class="modal-header">
            <h5 class="modal-title">Create Account</h5>
            <button data-dismiss="modal" class="close" type="button"><i aria-hidden="true" class="fa fa-times"></i></button>
        </div>
        <form method="post" asp-controller="Accounts" asp-action="Edit">

            <label asp-for "Email">Email</label>
            <input asp-for="Email" type="email">
            <span asp-validation-for="Email" class="text-danger"></span> 

            //...

            <button type="submit">Submit</button>
        </form>
    </div>
</div>

0 个答案:

没有答案