Resolved build foreach in page

Andy75

Member
Joined
May 29, 2020
Messages
18
Programming Experience
1-3
Hi all,
I have a class made up of objects.
I would like to recall these objects and mount them in a table in my .cshtml page.

What is the better way to do this?
I had thought of using Viewbag.
thanks for support
A.
 
Last edited:
Pass a model to the view, and in the Razor, bind to the model attributes.
 
Back
Top Bottom