Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>If your action gets called, setting a breakpoint at the beginning of your action and attaching to the process should do the trick. Have you made sure that a POST request is sent from the browser when you click submit on your Create page ?</p> <p>I haven't tried to run your code but note that you have defined two Create actions with the same name to process the POST verb.</p> <p>This is likely to be ambiguous for the ASP.NET MVC as it cannot figure out what action to call.</p> <p>Also, you are defining a ReturnUrl route value in the following line:</p> <pre><code>@using (Html.BeginForm("Create", "ThirdParty", new { ReturnUrl = ViewBag.ReturnUrl }, FormMethod.Post, new { @class = "form-horizontal" })) </code></pre> <p>This doesn't seem to be used in your action handling the POST.</p> <p>Why do you have 2 submit buttons with the values "submit" and "create" ?</p> <p>You can remove the Create action that takes the extra button parameter and replace the markup:</p> <pre><code>&lt;button name="button" type="submit" class="btn btn-default" value="cancel"&gt;Cancel&lt;/button&gt; &lt;input name="button" type="submit" class="btn btn-primary" value="submit" title="Submit" /&gt; &lt;input type="submit" value="Create" /&gt; </code></pre> <p>with something like:</p> <pre><code>&lt;a class="btn btn-default" href="@Url.Action("Index", "ThirdParty")"&gt;Cancel&lt;/a&gt; &lt;input name="button" type="submit" class="btn btn-primary" value="Create" title="Create" /&gt; </code></pre> <p>I invite you to read more <a href="http://www.asp.net/mvc/tutorials/older-versions/controllers-and-routing/asp-net-mvc-routing-overview-cs" rel="nofollow">documentation</a> on how ASP.NET MVC Routing works.</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. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      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