I am using ASP.NET MVC2 for my project. I want to send the user confirmation messages after actions.
Ideally:
User clicks on a link with a query string (i.e. a link to delete an entry)
The controller does what the link says, creates the success message, and uses RedirectToAction to get rid of the query string from the URL.
The new action displays the success message.
It was suggested I use a model error to do this, however I do not think that will work in this situation.
Thanks.
You could use
TempData:Internally
TempDatauses session in order to persist the information but it is automatically purged after the next request, so it will be available only on the next request following the storage.