I have a searchform in my mvc application where i choose in a dropdownlist what department i want to search in, and a textinput on what i want to search on.
when i choose a department in my dropdownlist i want to forms controller to change to the selected value.
Lets say i have these items i my dropdownlist: "Customers", "Products", "Invoices"
when i choose "Customers" in my dropdownlist i want my Html.BeginFrom to look like this:
<% using (Html.BeginForm("Customers", Request.QueryString["Search"], "Search", FormMethod.Get))
{ %>
and when i select "Products" i want "Customers" to change to "Products".