Note that there are some explanatory texts on larger screens.

plurals
  1. PORedirecting after submit from partial view
    primarykey
    data
    text
    <p>This here is my partial view</p> <pre><code> @model OpenRoad.Web.Areas.Marketing.Models.AgreementModel &lt;script type="text/javascript"&gt; $(document).ready(function () { $('#agreementcheckbox').change(function () { if (this.checked) { $('#btn_next').show(); } else { $('#btn_next').hide(); } }); }); &lt;/script&gt; @using Telerik.Web.Mvc.UI; @using (Html.BeginForm("Agreement", "LeadPipes",FormMethod.Post)) { @Html.HiddenFor(m=&gt;m.SiteId); @Html.HiddenFor(m=&gt;m.Email); @Html.HiddenFor(m =&gt; m.CountyID); @Html.HiddenFor(m =&gt; m.HasNationWideLeadpipes); @Html.HiddenFor(m =&gt; m.Time); @Html.HiddenFor(m=&gt;m.LeadType); &lt;h2&gt;Agreement&lt;/h2&gt; &lt;p&gt;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. &lt;/p&gt; &lt;br /&gt; &lt;span&gt;&lt;input type="checkbox" id="agreementcheckbox" /&gt; I have read and acknowledge the compliance.&lt;/span&gt; &lt;div id="btn_next" hidden="hidden"&gt; &lt;span class="btn_add"&gt;&lt;input type="submit" value="Next" id="btnSubmit"/&gt;&lt;/span&gt; &lt;/div&gt; } </code></pre> <p>and this is the controller but it will not let me redirect to the page i have listed in the code. Could someone please explain to me how to correctly have it redirect to the pages listed.</p> <pre><code>[HttpPost] public ActionResult Agreement(Models.AgreementModel model) { if (model.LeadType != null) { return Redirect("~/List?hasNationWideLeadPipes=" + model.HasNationWideLeadpipes + "&amp;leadtype=" + model.LeadType); } else return Redirect("~/List"); } </code></pre> <p>THanks</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload