NToastNotify
NToastNotify copied to clipboard
@nabinked I have a similar problem. using 6.0.2 in netcoreapp3.1 razor pages project
@nabinked I have a similar problem. using 6.0.2 in netcoreapp3.1 razor pages project
I had to manually put _content/NToastNotify/toastr.js as otherwise, I got 404 error when the viewcomponent for ntoastnotify was trying to do ntoastnotify.init.
So with the above in mind, I got the onGet to add a toast message and then it shows on page load. However, when I add a toast onPost, it fails to show the toast on the next page, as it used to when I used netcoreapp2.2 with an older version of NToastNotify nuget package.
Please let me know if you know what the issue could be.
Originally posted by @talksik in https://github.com/nabinked/NToastNotify/issues/84#issuecomment-601487117
same issue I am also getting,
I got the same issue doesn't generate the _content/NToastNotify/toastr.js folder and file Using v6.1.3
Hello, I am running into this same issue with a project I recently upgraded to .NET Core 3.1. If manually copying the toastr.js file structure to the wwwroot folder works, I'm OK with that. Where can I find the file and structure to copy? Is that in the nuget package source somewhere? Thanks,
Sorry Guys. I have not been able to find time to look at this. Will try to fix this issue tonight.
Can I get a simple repro for this issue if possible ?
Can you guys upgrade to the latest please ?
Also note that You have to Accept the Cookie policy for Post-Redirect to work. Since by default the aspnet uses CookieTempDataProvider which is used by the library to show toasts.