2
Answers

How to get dropdown selected value in cshtml

Ankita Gupta

Ankita Gupta

Oct 01
505
1

Hi,

I have a .cshtml page which has some controls on top and table below.

Table is created with lots of if else condition and for that I want to access html controls value (dropdown selected value).

I am struggling with how to access dropdown list selected value in same .cshtml page.

so something like that ??

if(dropdown selected value == "4")

{

}

Answers (2)