Ankita Gupta

Ankita Gupta

  • NA
  • 13
  • 0

How to get dropdown selected value in cshtml

Oct 1 2024 4:05 PM

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)