ToString1
asked on
mvc2 - Post value from html dropdown in form post to controller
I have an ascx search control on a masterpage on an mvc2 app. It comprises of a dropdown to select an option and then click input button.
However I cannot get it to post the selected value to the controller, what am I doing wrong
<% using (Html.BeginForm("actionNam e", "controllerName"))
{ %>
<%= Html.DropDownListFor(x => x.CustomerSelectList, Model.CustomerSelectList)% >
///
<input type="Submit" id="cust" value="Search" />
However I cannot get it to post the selected value to the controller, what am I doing wrong
<% using (Html.BeginForm("actionNam
{ %>
<%= Html.DropDownListFor(x => x.CustomerSelectList, Model.CustomerSelectList)%
///
<input type="Submit" id="cust" value="Search" />
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER