Answer the question
In order to leave comments, you need to log in
How to pass dropdown value to controller?
There is a POST method in the controller that accepts two string variables.
ActionResult Method(string s1 , string s2)
s1 is taken from the input field, s2 from the dropdown list.
The question is how to pass the selected variable to s2 from the dropdown list?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question