Craber
Craber
CC#
Created by Craber on 12/4/2023 in #help
render partial view inside bootstrap modal pop up dynamically in .net core
Hello everyone! Recently, I’ve been tasked with doing a project based off the conoso project on YouTube according to my professor. However, after overcoming some failures, my biggest problem currently is populating the modal via Ajax and mvc/api controller with some other files similar to the Contoso Project. Except, I’m 4 version ahead. Now, I’m not asking for a direct answer but I was wondering what is the proper way to populate a modal given that already have the structure within my razor page and logic in my Ajax js and controller, but I keep getting null references as a response. I’m currently using a JSON file for this project and I figured out how to populate containers but not modals. I found out page view does the trick for server side rendering unlike how I populated my containers by refresh. So I was wondering how I could do this and what would you recommend. Thank you!
16 replies