I have 3 DataSets that I would like to render in a view. I have seen several examples to render one, but not two.
It is possible to put the DataSets in the ViewData Collection but then they are not “DataSets” any more when accessing them in the veiw.
Thanks.
ViewData is a bit hacky and easily abused.
You should create a ViewModel and place them there.
Fill the Model in the Controller, then pass it to the View.
MODEL
VIEW
CONTROLLER