title: How to use message box in MVC controller?
body: <p>I've created a MVC application. User has to register and once it is completed, 
  I'm redirecting him to "thank you" page. However I would like just to show user a pop-up with this message. How can I achieve this?</p>
  
  <p>My code:</p>
  
  <pre><code>[HttpPost]
  public ActionResult Enquiry(Enquiry enquiry)
  {
      if (ModelState.IsValid)
      {
          dbEntities.Enquiries.AddObject(enquiry);
          dbEntities.SaveChanges();
          enquiry.SendEnquiryEmail(enquiry);
  
          return RedirectToAction("Thankyou"); 
      }
  
      return View(enquiry);
  }
  
  //redirect to thankyou page
  public ActionResult Thankyou()
  {
      return View();
  }
  </code></pre>