0

これが私の部分的なビューです

   @model OpenRoad.Web.Areas.Marketing.Models.AgreementModel


     <script type="text/javascript">
         $(document).ready(function () {

             $('#agreementcheckbox').change(function () {
                 if (this.checked) {
                     $('#btn_next').show();
                 }
                 else {
                     $('#btn_next').hide();
                 }
             });
         });

     </script>


@using Telerik.Web.Mvc.UI;
@using (Html.BeginForm("Agreement", "LeadPipes",FormMethod.Post)) 
{
    @Html.HiddenFor(m=>m.SiteId);
     @Html.HiddenFor(m=>m.Email);
    @Html.HiddenFor(m => m.CountyID);
    @Html.HiddenFor(m => m.HasNationWideLeadpipes);
    @Html.HiddenFor(m => m.Time);
     @Html.HiddenFor(m=>m.LeadType);

<h2>Agreement</h2>
<p>I agree to make sure that all of my communication will be in compliance with both federal and state regulations governing securities.  I acknowledge that it is against federal and state Securities and Exchange Commission laws to solicit loans in an improper manner.  Prior to using Realeflow to download various potential private investor leads, I agree that I am fully liable and responsible for knowing the laws of my state as well as the federal SEC laws.  I will not hold Realeflow, LLC responsible in any way for my violation of those laws.
</p>
    <br />
<span><input type="checkbox" id="agreementcheckbox" /> I have read and acknowledge the compliance.</span>
<div id="btn_next" hidden="hidden">
<span class="btn_add"><input type="submit" value="Next" id="btnSubmit"/></span>

</div>
}

これはコントローラーですが、コードにリストしたページにリダイレクトできません。リストされたページに正しくリダイレ​​クトする方法を誰かに説明してもらえませんか。

[HttpPost]
        public ActionResult Agreement(Models.AgreementModel model)
        {
            if (model.LeadType != null)
            {                
                return Redirect("~/List?hasNationWideLeadPipes=" + model.HasNationWideLeadpipes + "&leadtype=" + model.LeadType);
            }
            else return Redirect("~/List");

        }

ありがとう

4

1 に答える 1