@RenderSection in nested razor templates
问题 My problem is I can't seem to use @RenderSection from a nested template when @RenderSection is defined in the base template. Currently, I have a nested base template which is linked to a child template which is then used in the view pages. When I define the @RenderSection in the base template and render it in the view pages it throws an error. Here's the exact problem. I want to create a RenderSection to allow me to insert custom scripts. My base template.... <!DOCTYPE html> <html> <head>