Blazored / Toast

A JavaScript free toast library for Blazor and Razor Component applications
https://blazored.github.io/Toast/
MIT License
654 stars 90 forks source link

Rendering Toast in cshtml or firing the toast from cshtml.cs #220

Closed VitalJeevanjot closed 1 year ago

VitalJeevanjot commented 1 year ago

Hi,

Thankyou for this awesome package. I am new in Blazor development and creating my first Blazor-server project. I have Scaffolded Register.cshtml(cshtml.cs) files from Identity to add a custom check before moving forward in OnPostAsync(). The toast works file from Razor component like index.razor but through cshtml or cshtml.cs it didn't show up.

image

I am at first steps in "web-development in C#". Thank you.

chrissainty commented 1 year ago

Hi @VitalJeevanjot. This package only works in Blazor components, not in Razor Pages or MVC views.

VitalJeevanjot commented 1 year ago

Ok thanks @chrissainty