title: Display popup confirmation message with MVC C# after postback
body: <p>Using MVC Framework with C# coding. The views are written in standard HTML code.
  I require a confirmation message saying "Your message has been sent" once the user clicks the submit button</p>
  
  <p>Here is the controller:</p>
  
  <pre><code>public ActionResult Index(ContactViewModel contactVM){
          if (!ModelState.IsValid)
          {
              string url = Request.UrlReferrer.AbsolutePath+ "#contact";
  
              return View();
          }
          else
          {
              var contact = new Contact
              {
                  Name = contactVM.Name,
                  Email = contactVM.Email,
                  Subject = contactVM.Subject,
                  Message = contactVM.Message
              };
              new Email().Send(contact);
              return RedirectToAction("Index");
          }
  </code></pre>
  
  <p>Here is the View:</p>
  
  <pre><code>&lt;input type="submit" class="submit_btn left" name="Submit" id="submit" value="Submit"/&gt;
  &lt;input type="reset" class="submit_btn right" name="Reset" id="reset" value="Reset" /&gt;
  </code></pre>
  
  <p>Kindly assist.</p>