Hi
I have below code . Instead of hardcoding i want data to be read from Database and then displayed

Thanks
Hi
I have below code . Instead of hardcoding i want data to be read from Database and then displayed

Thanks
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Jaimin ShethiyaPosted Apr 29, 2024, 4:37 AM
Hello Ramco,
Thanks
Jaimin ShethiyaPosted Apr 29, 2024, 4:19 AM
Hello Ramco,
Prepare the list variable in the javascipt side or if you are using angular/react then prepare the list in the componenet side, and use that object in the html side for render and showing the data.
Thanks
Prasad RaveendranPosted Apr 28, 2024, 1:43 PM
Using .NET 6.0 Web API, you can achieve the same functionality by creating a Web API project that connects to your database and serves the image URLs. Here's a basic outline of how you can do this:
Set up your database: Make sure you have a database table with columns for image URLs.
Create a .NET Web API project: You can create a new .NET Web API project using Visual Studio or the .NET CLI.
Set up Entity Framework Core: Use Entity Framework Core to interact with your database from the API project.
Create a Controller: Implement a controller that retrieves the image URLs from the database and returns them as JSON.
sample UI code