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.
I'm looking for an approach which uses MVC HTTPGET, HTTPPOST methods and In Javascript or Ajax should not have hardcoded property names
Here is what I'm able to achieve till now:
I'm fairly new to AJAX, JQUERY
Main Error: 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
- Approach based on this link but it did not workout in Internet Explorer. Issue: HTTPPOST action does not call in Internet Explorer or Chrome
- Tried to follow his complete article but Did not like the way JSON is used and validation is performed.
- Jquery UI modal form: Want to use feature like this but no idea how to use ASP.net MVC4 HTTP GEt And HTTP POST in this.
- Tried this demo too but :(
- This one was good, tried to implement by using his complete source code but still could not able to work
- ASP.net MVC Modal 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. More information about it
- Code project: Comparison of three jquery modal Though it was in ASPX but still tried to implement. (Did not work out :()
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.
This feature is pretty much used and discussed so if someone has working code then please share.
CODE Here is my complete code: http://pastebin.com/yNH7CFTS
ERROR HINT 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 :
http://localhost:53381/Project/Details/1?ProjectId=1&Effort=0&Cost=56
Where values 1 ,0 ,56 are what I enter in textboxes
Anyone can please post a complete answer for MODAL / POPUP in asp.net MVC with RESTFUL methods.