我已經使用jQuery寫了下面的代碼在我看來,當圖像按鈕,用戶點擊的形式應該被提交,但它沒有提交後形式的MVC
<% using (Html.BeginForm("Resumename", "Resumewizard",
FormMethod.Post, new { name = "Resumetitle",OnLoad="Error();"})){ %>
<%=Html.Label("Step 1.Resume Name")%><br />
<%=Html.Label("Please Enter Resume Name,Job Title and Objective")%><br />
<%=Html.Label("Resume Name")%><br />
<%=Html.TextBox("ResTitle")%><br />
<%=Html.Label("Desired Job Title/Position")%><br />
<%=Html.TextBox("DesPos")%><br />
<%=Html.Label("Objective")%><br />
<%=Html.TextArea("ResObjective")%><br />
<% string str = ViewData["Errormsg"].ToString(); %>
<div id="msgblock">
<%=Html.Label(str)%>
<%=Html.Hidden("error", ViewData["Errormsg"])%>
<%=Html.Hidden("resumeid",ViewData["resumeid"])%>
</div>
<input id="SaveForwardButton" type="image"
src="../../Content/img/buttons/SaveForwardButton.gif" />
<% } %>
鑑於您的輸出HTML格式有多差,如果您的頁面無效,並且因此無法正確解析,就不會感到意外。我建議根據W3C驗證器驗證輸出html並尋找問題。 –