It is so that if I write something specific in my text on the page then I should have shown a form on the page when writing the simple word that I want it to be overwritten with.
The problem is right now that I can in no way make my PartialView appear.
It seems you return string data but you need a Partial View.
Could you share a demo which could reproduce your issue?
Best Regards,
Rena
.NET forums are moving to a new home on Microsoft Q&A, we encourage you to go to Microsoft Q&A for .NET for posting new questions and get involved today.
Member
35 Points
135 Posts
Replace old text for PartialView - View only when the word appears.
Mar 26, 2020 02:57 PM|Jesper Petersen|LINK
It is so that if I write something specific in my text on the page then I should have shown a form on the page when writing the simple word that I want it to be overwritten with.
The problem is right now that I can in no way make my PartialView appear.
I've looked at these here:
https://stackoverflow.com/a/19208941
It causes problems when trying to just "run" as it is now and I get this error.
Microsoft.AspNetCore.Mvc.PartialViewResult
Code her:
i have C# 7.3 and .net core 2.1
</div> </div> </div> </div> </div>
Contributor
2690 Points
874 Posts
Re: Replace old text for PartialView - View only when the word appears.
Mar 27, 2020 09:17 AM|Rena Ni|LINK
Hi Jesper,
It seems you return string data but you need a Partial View.
Could you share a demo which could reproduce your issue?
Best Regards,
Rena
All-Star
58234 Points
15673 Posts
Re: Replace old text for PartialView - View only when the word appears.
Mar 27, 2020 02:38 PM|bruce (sqlwork.com)|LINK
you a .net core version of partial render. try:
https://www.surinderbhomra.com/Blog/2018/09/02/ASPNET-Core-Render-Partial-View-To-String-Outside-Controller-Context