내가 MVC 내에서 표준 편집 양식보기를 제출, 나는이 경우에는 아래처럼 BeginForm 내부에 생성, 사용자 컨트롤을 배치해야합니다MVC 하나 개 이상의 형태는
을 문제가 있다는 것입니다 때 양식이 제출 될 때 ascx를 생성하면 제어기에서 조치가 실행되지 않습니다. 무엇을 잘못하고 있습니까?
<% using (Html.BeginForm())
{%>
<fieldset>
<legend>Tax</legend>
<p>
<label for="Name">
Name:</label>
<%= Html.TextBox("Name", Model.Tax.Name) %>
<%= Html.ValidationMessage("Name", "*") %>
</p>
<p>
<% Html.RenderAction("Create", "Mileage"); %>
</p>
<p>
<input type="submit" value="Save" />
</p>
</fieldset>
<% } %>
여기에 당신은 당신의 결과 HTML의 형태를 중첩 한 Create.ascx
<% using (Html.BeginForm())
{%>
<fieldset>
<p>
<label for="Distance">
Distance:</label>
<%= Html.TextBox("Distance", Model.Mileage.Distance)%>
<%= Html.ValidationMessage("Distance", "*") %><span class="field-validation-error"
id="field-validation-error-distance">*</span>
</p>
</fieldset>
<% } %>
양식 내에 양식이 있다는 사실 때문에 문제가 발생할 수 있습니까? –