Link to home
Start Free TrialLog in
Avatar of ToString1
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("actionName", "controllerName"))
 { %>

 <%= Html.DropDownListFor(x => x.CustomerSelectList, Model.CustomerSelectList)%>

///
   <input type="Submit" id="cust" value="Search" />
ASKER CERTIFIED SOLUTION
Avatar of HohlovDima
HohlovDima
Flag of Ukraine image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of ToString1
ToString1

ASKER

Thanks Dima!