title: ADD / EDIT / DELETE using Modal popup in ASP.net MVC4
body: <p>I've spent plenty of time in understanding how to use modal popup but I've not found any good answer yet or I should state Full working code.</p>
  
  <p><strong>I'm looking for an approach which uses MVC HTTPGET, HTTPPOST methods and In Javascript or Ajax should not have hardcoded property names</strong>   </p>
  
  <p>Here is what I'm able to achieve till now:<br>
  <img src="https://i.stack.imgur.com/pQhnL.png" alt="enter image description here">  </p>
  
  <p>I'm fairly new to AJAX, JQUERY     </p>
  
  <p>Main Error: <strong>I'm not able to properly use SAVE button here i.e. HTTPPOST action is not called in Internet Explorer and Chrome , though that works in Firefox</strong></p>
  
  <ol>
  <li><a href="https://stackoverflow.com/a/12843281/351708">Approach based on this link</a> but it did not workout in Internet Explorer. Issue: HTTPPOST action does not call in Internet Explorer or Chrome   </li>
  <li><a href="https://www.simple-talk.com/dotnet/asp.net/modal-input-forms-in-asp.net-mvc/#commentform" rel="nofollow noreferrer">Tried to follow his complete article</a> but Did not like the way JSON is used and validation is performed.  </li>
  <li><a href="http://jqueryui.com/dialog/#modal-form" rel="nofollow noreferrer">Jquery UI modal form: Want to use feature like this</a> but no idea how to use ASP.net MVC4 HTTP GEt And HTTP POST in  this.  </li>
  <li><a href="http://amitraya.blogspot.com/2012/09/modal-dialog-form-view-using-jquery.html" rel="nofollow noreferrer">Tried this demo too but :( </a>   </li>
  <li><a href="http://www.google.com/url?q=http://ricardocovo.com/2011/04/03/asp-mvc3-editing-records-with-jqueryui-dialogs-and-ajaxforms/&amp;sa=D&amp;sntz=1&amp;usg=AFQjCNGqFwr6H-Y9exspRvLP0kouasvGjQ" rel="nofollow noreferrer">This one was good, tried to implement by using his complete source code but still could not able to work</a>  </li>
  <li><a href="http://mvcmodaldialog.codeplex.com/" rel="nofollow noreferrer">ASP.net MVC Modal</a> Had too much hope from this one. Downloaded, tried to implement everything after 2-3 hours realized even this one is not "Ready to use" as it states. <a href="http://www.devzest.com/blog/post/ASPNet-MVC-Modal-Dialog.aspx" rel="nofollow noreferrer">More information about it</a>  </li>
  <li><a href="http://www.codeproject.com/Articles/146396/A-Comparison-of-Three-jQuery-Modal-Dialogs-for-ASP" rel="nofollow noreferrer">Code project: Comparison of three jquery modal</a> Though it was in ASPX but still tried to implement. (Did not work out :()</li>
  </ol>
  
  <p>Tried couple of other solutions, each one having its own issues. May be some of these posts are old and jquery version have obsoleted few control. </p>
  
  <p>This feature is pretty much used and discussed so if someone has working code then please share. </p>
  
  <p><strong>CODE</strong> Here is my complete code: <a href="http://pastebin.com/yNH7CFTS" rel="nofollow noreferrer">http://pastebin.com/yNH7CFTS</a></p>
  
  <p><strong>ERROR HINT</strong> I'm not sure if this is the problem but in Internet Explorer when I press Save button then dialog closes which calling HTTPPost action and the url in browser is :</p>
  
  <pre><code>http://localhost:53381/Project/Details/1?ProjectId=1&amp;Effort=0&amp;Cost=56  
  </code></pre>
  
  <p>Where values 1 ,0 ,56 are what I enter in textboxes    </p>
  
  <p>Anyone can please post a complete answer for MODAL / POPUP in asp.net MVC with RESTFUL methods. </p>