public async Task<iactionresult> OnPostAsync() { if (!ModelState.IsValid) { return Page(); } _context.Attach(SearchField).State = EntityState.Modified; try { await _context.SaveChangesAsync(); } catch (DbUpdateConcurrencyException) { if (!SearchFieldExists(SearchField.Id)) { return NotFound(); } else { throw; } } return RedirectToPage("/Projects/Edit/3"); }
No page named '/Projects/Edit/3' matches the supplied values.
return RedirectToPage("/Projects/Edit", new { id = 3 });
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)