Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public IActionResult OnPost(){
- if (!ModelState.IsValid) {
- return Page();
- }
- return RedirectToPage('Pages/index.cshtml');
- }
- @page
- @using RazorPages
- @model IndexModel
- <form method="POST">
- <input type="submit" id="Submit">
- </form>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement