Hi,
You have shared a the introductory explanation of how to use partial views. I know how to use partial views and my problem is specifically when using a partial view twice on the page.
The example in your link uses the partial view only once . When I change the code in your example to display partial view twice, I see the exact same error.
Also I am using Razor Pages while both these examples are for MVC.
Additionally in Razor Pages you can simply use <partial name="partialViewName" /> rather than javascript as in your example.
Anyway my problem irrespective of whether its MVC or Razor pages, is only when I use the partial view twice in my Razor Page.
Thanks
Avinash Tauro