R
R
Romanchitoz2018-07-17 00:10:00
ASP.NET
Romanchitoz, 2018-07-17 00:10:00

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

1 answer(s)
O
Oleg, 2018-07-17
@slayez

Drop-down list

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question