User-1546622187 posted
Hi, I have a ExampleView.cshtml in which a user can choose to see some charts related to :
So, in my View i have a "combo box" with values: Weekly, Monthly and
Yearly. After click on "Apply" button, If the user has choosen
"Weekly", he can see weekly charts, and so on. On the ExampleController.cs I have already implemented a
switch statement based on a ViewBag.Flag value, which in default case it has value
0 (week) and in another cases it has value 1 (month) or
2 (year), which call some methods who load some data in order to get the right values to build the charts (bar chart, donut chart and line chart - I'm already able to build them).
So, I want to retrieve the selection done in the View and passing it to the Controller to load another data to populate the charts.
I hope you can unterstand my question.
Have a nice day 