Here Mudassar Ahmed Khan has explained with an example, how to refresh a page after submit (post) in ASP.Net Core Razor Pages.
If the Browser is refreshed using F5 button after the Form is submitted (in other words after PostBack operation), the submitted data is resubmitted to Server.
Thus to prevent such behavior, the Page is redirect to same page after Form submit (post).
↧