title: How to display Jquery modal dialog after server side validation error
body: <p>I am very new to JQuery and MVC. In my application i am opening a JQuery modal dialog on button click. I am rendering a partial view on this dialog using controller action method which is something like: </p>
  
  <pre><code>public ActionResult Create()
  {                     
    return PartialView("Create");
  } 
  </code></pre>
  
  <p>Partial view contains some textboxes and "create" button. On create button i am trying to save data in database. But before that i do some validation like if entered name already exist then show that message to user.
  I did this using following code:</p>
  
  <pre><code>return PartialView("Create", model);
  </code></pre>
  
  <p>this is showing the message properly but it render only partial view in browser and modal dialog gets disappeared. </p>
  
  <p>Please let me know how can i show the same modal dialog with error.</p>