html - One submit button for Form and textbox MVC4 -
i using mvc4.
i have view of form using @using (html.beginform) want utilize table instead of fieldset
the view great had have submit button (in every record)as shown in code .
i want one button submit ? seek set submit out of (html.beginform) not work!!? also have textbox cost ...and want linked same submit buttonthis view :
<p>enter cost please :</p>@html.textbox("price") <fieldset> <legend></legend> <table> <tr> <th> title1 </th> <th> title1 </th> <th> title3 </th> <th> button </th> </tr> @using (html.beginform("action", "contrroler")) { int index = 0; foreach (var req in model.selectedhome.descreption) { <tr> <td> @html.displayfor(m => m.homenmae) </td> <td> @html.displayfor(m => m.place) </td> <td> @html.editorfor(m => m.rommsnumber) </td> <td> <button type="submit" class="button "> click </button> <td> </tr> index++; } } </table> </fieldset>
put submit button outside loop within form
html asp.net-mvc-4 view
No comments:
Post a Comment