How to create a form that has a search function (pull data from the database) AND a submit function (add data to the database) at the same time using the BeginForm()
method? I am reviewing the overloads on MSDN and I don't seem to find one.
Code:
@using (Html.BeginForm()){
<table>
@*Bunch of textboxes and dropdown lists*@
</table>
<div id=" buttonHolder">
<input id="Search" type="button" value="Search" />
<input id="Reset1" type="reset" value="Reset" />
<input id="Submit1" type="submit" value="Add" />
</div>
}