public ActionResult Create(FormCollection collection) { ... TempData["notice"] = "Successfully registered"; return RedirectToAction("Index"); ... }
@if (TempData["notice"] != null) { <p>@TempData["notice"]</p> }
No comments:
Post a Comment