C
C#3y ago
oe

❔ ASP.NET access select element's object choice

How do I access the object that's been selected by the selected option element? I am new to ASP.NET so trying to understand the best way to do this.
4 Replies
Saber
Saber3y ago
unless your using blazor, you don't.
oe
oeOP3y ago
So what's my best case scenario to solve this ? Surely there's a way to do this in razor no? I guess I have to write some javascript
Saber
Saber3y ago
No because it's server side rendered, once the page loads you need js to do that.
Accord
Accord3y ago
Was this issue resolved? If so, run /close - otherwise I will mark this as stale and this post will be archived until there is new activity.

Did you find this page helpful?