I am in the process of developing an ASP.NET web application focused on virtual classrooms. Each user has their own set of classrooms that are saved in my SQL database, and I want to display these classrooms on individual cards using HTML tags.
The card layout is already designed, but now I need to dynamically create the required number of cards based on the user's joined classrooms. I also need each button on the card to perform a specific action depending on the classroom it represents. The challenge lies in generating these cards at runtime, and I'm unsure of how to proceed.
If anyone has experience with this kind of dynamic card creation, I would greatly appreciate your assistance.
My English may not be perfect as Spanish is my primary language, and I try to avoid using translators due to potential inaccuracies.
You can view a screenshot illustrating my point here:
https://i.sstatic.net/K7b9g.png
I have attempted to display some sample cards filled with data, but it is not very user-friendly. Ideally, I want to present only the necessary cards for a cleaner user experience.