How to write a code for displaying the alert message: “Successfully registered”, after user data is stored in database, using MVC
I am using Asp.Net MVC3, C#, Entity Model.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Try using
TempData:Then, in your Index view, or master page, etc., you can do this:
Or, in a Razor view:
Quote from MSDN (page no longer exists as of 2014, archived copy here):