ASP.NET MVC View 上 建立 Web Form – Post, Submit
係 View Document 適當既 <asp:Content > 內加上 |
<% Using Html.BeginForm("Sub/1.aspx", "Root", FormMethod.Post)%> <table border="1" cellpadding="0" cellspacing="0"> <tr> <td><%=Html.Label("Input1")%></td> <td><%=Html.TextBox("Input1")%></td> </tr> <tr> <td><%=Html.Label("Input2")%></td> <td><%=Html.TextArea("Input2")%></td> </tr> <tr> <td colspan="2"><input type="submit" /></td> </tr> </table> <% End Using %> |