Take the 2-minute tour ×

I have a partial view that is strongly typed. I have a drop down inside that partial view. I have rendered that partial view on the view. I need to get the item that was selected on the dropdown on the form submit. How do I get it?

Any help is appreciated.

Thanks, Naveen

share|improve this question

1 Answer 1

up vote 1 down vote accepted

Give that drop down a name attribute at render time. Then, in post Controller Action, make sure to have a string with the same name as a parameter. Binding is done automagically for you by the framework

For example, in your view, you'd have something like this:

Html.DropDownList("myDropDown", SomeListOfValues);

Then in your controller's post action:

public ActionResult MyPostAction(string MyDropDown) {
   // do whatevs with it

P.S. same idea works even if you construct your list using just HTML. Set some breakpoints and try it out for yourself

share|improve this answer
I had made a mistake in the name(in the controller), found it thanks a ton. –  user1058824 Nov 26 '11 at 1:33

Your Answer


