"I want to know how i can access appsettings.json in client side balzored project.cs file."
Asked
Active
Viewed 265 times
1
-
Is your client side a Blazor Webassembly or a BlazorServer generated page? Specifying this might help find the correct answer. – Shuryno Dec 21 '21 at 21:00
-
What do you mean by `Project.cs` could you please share your relevant code snippet? – Md Farid Uddin Kiron Dec 22 '21 at 08:03
-
Program.cs file – Arslan Ashfaq Dec 23 '21 at 09:21
-
There is not straight way, you have create a `method` in backend which will access your `appsettings.json` and need to call that `method/api` from your client side. – Md Farid Uddin Kiron Dec 24 '21 at 01:24
-
Please clarify your specific problem or provide additional details to highlight exactly what you need. As it's currently written, it's hard to tell exactly what you're asking. – Community Dec 29 '21 at 04:39