2
Answers

get dropdownlist selected value for each row

Photo of Supriya Shukla

Supriya Shukla

6y
1.3k
1
I have a view where in a table I am showing all the list of my students. Now in table I added a dropdownlist for by html helper @HTML.Dropdownlist  , there is a submit button on my page .
Every row in a table has some  selected dropdown value . Now when a submit button is click I want to get the selected dropdown value for each row. But I dont know how to get the value in my controller.
 
I am a very beginner in asp.ner core mvc. Any help is appreciated.
Thanks 

Answers (2)