Files
ClientServerProject/软件系统浏览器模版/Views/Home/AdviceFeedback.cshtml
2017-07-31 15:57:45 +08:00

40 lines
1003 B
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

@{
ViewBag.Title = "意见反馈";
Layout = "~/Views/Shared/_Layout.cshtml";
string content = Guid.NewGuid().ToString("N");
}
@section scripts
{
<script src="~/Scripts/jquery.unobtrusive-ajax.min.js"></script>
}
<h2>请在下方填写意见反馈字数控制在1000字以内</h2>
<div>
@using (Ajax.BeginForm("AdviceFeedback", "Home", new AjaxOptions()
{
HttpMethod="POST",
UpdateTargetId = content,
InsertionMode = InsertionMode.Replace
}, new { @class = "form-horizontal" }))
{
@Html.AntiForgeryToken()
<div class="form-group">
<label for="advice">请输入建议</label>
<textarea class="form-control" name="advice" id="advice" placeholder="建议内容字数1000字以内不要带回车键" rows="6"></textarea>
</div>
<div id="@content" class="form-group" style="padding:0px,5px,0px,5px">
</div>
<button type="submit" class="btn btn-default">提交</button>
}
</div>