C# 从部分视图提交后重定向

C# 从部分视图提交后重定向,c#,asp.net-mvc,redirect,partial-views,C#,Asp.net Mvc,Redirect,Partial Views,这是我的部分观点 @model OpenRoad.Web.Areas.Marketing.Models.AgreementModel <script type="text/javascript"> $(document).ready(function () { $('#agreementcheckbox').change(function () { if (this.checked)

这是我的部分观点

   @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>
}

谢谢,不要硬编码URL。相反:

return RedirectToAction("List", new {
    hasNationWideLeadPipes = model.HasNationWireLeadpipes,
    leadtype = model.LeadType
});

让路由框架完成它的设计任务。

您能显示列表操作声明吗?您的意思是什么?抱歉。是否要重定向到列表操作?对我想看看它的声明。不,我想重定向到一个页面。只有页面,静态页面?有参数吗?奇怪…是的,他还是什么都不做。但我应该更清楚哈。
return RedirectToAction("List", new {
    hasNationWideLeadPipes = model.HasNationWireLeadpipes,
    leadtype = model.LeadType
});