NToastNotify icon indicating copy to clipboard operation
NToastNotify copied to clipboard

@nabinked I have a similar problem. using 6.0.2 in netcoreapp3.1 razor pages project

Open Aruny4177 opened this issue 4 years ago • 7 comments

@nabinked I have a similar problem. using 6.0.2 in netcoreapp3.1 razor pages project

image

image

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.

image

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

Aruny4177 avatar May 26 '20 13:05 Aruny4177

same issue I am also getting,

Aruny4177 avatar May 26 '20 13:05 Aruny4177

I got the same issue doesn't generate the _content/NToastNotify/toastr.js folder and file Using v6.1.3

dotnetshadow avatar Jun 11 '20 09:06 dotnetshadow

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,

petertirrell avatar Jun 29 '20 20:06 petertirrell

Sorry Guys. I have not been able to find time to look at this. Will try to fix this issue tonight.

nabinked avatar Jun 30 '20 01:06 nabinked

Can I get a simple repro for this issue if possible ?

nabinked avatar Jun 30 '20 01:06 nabinked

Can you guys upgrade to the latest please ?

nabinked avatar Jul 03 '20 03:07 nabinked

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.

nabinked avatar Jul 10 '20 00:07 nabinked