ASP.Net MVC 5表单发布超时

时间:2019-09-08 13:14:42

标签: html asp.net-mvc post

我的发帖人控制器看起来像这样

 public ActionResult SaveMeasurement(IEnumerable<AqlMeasurementData> data)
    {
             //DoSomething
    }

cshtml表单如下所示:

       @using (Html.BeginForm("SaveMeasurement", "MyForm", FormMethod.Post))
        {
            <div class="col-md-12 col-sm-12" style="height: 380px; overflow: scroll;" >
                @for (int i = 0; i < @Model.Count; i++)
                {
                <div class="form-group form-group-lg">
                    @Html.DisplayFor(x => x[i].MeasurementPoint, new {@class= "control-label col-md-12" }) (<span style="font-weight: bold">@Html.DisplayFor(x => x[i].Value, new { @class = "control-label col-md-12" })</span>)
                    <div class="col-md-12 col-sm-12">
                        @Html.TextBoxFor(x => x[i].RoundValue,htmlAttributes: new {@class= "datainput form-control col-md-12 col-sm-12",@readonly="readonly" })
                    </div>
                </div>
                @Html.HiddenFor(x=> x[i].Tolerance)
                @Html.HiddenFor(x => x[i].Value)
                @Html.HiddenFor(x => x[i].ProductionOrderId)
                @Html.HiddenFor(x => x[i].ProductAqlMeasurementId)
                @Html.HiddenFor(x => x[i].BatchId)
                @Html.HiddenFor(x => x[i].MeasurementPoint)

                }

            </div>
            <div class="form-group form-group-lg">

                <div class="col-md-10 col-sm-10"><br/>
                    <button value="Save" id="cmdSubmit" class="btn btn-success btn-lg">Save</button>
                </div>
            </div><br/>
            <div>
                @Html.ValidationSummary(true, "", new { @class = "text-danger" })
            </div>
               
        }

基本上,该表单是动态创建的,并且在提交集合时将其保存到数据库。一切正常。

但是从客户端的特定VPN网络内的Android选项卡中发布表单时,此表单提交超时吗?任何想法如何解决这个问题。

0 个答案:

没有答案