Creating a new record using AJAX in ASP.NET-MVC

Posted by RememberME on Stack Overflow See other posts from Stack Overflow or by RememberME
Published on 2010-03-26T16:59:42Z Indexed on 2010/03/26 17:03 UTC
Read the original article Hit count: 481

Filed under:
|
|
|

I am having the hardest time wrapping my head around this. I recently asked this question Create/Edit/Save data in a jQuery pop-up for ASP.NET-MVC and Linq2Sql I'm sure that the response is the right way to go, but I just can't figure out how to write the back-end code to make it work. I originally made my site by following the nerddinner tutorial. I have a subcontracts model and a subcontracts controller. On my subcontract entry page, I'd like for there to be a pop-up/dialog box where the user can enter a new company if the company isn't already in the drop-down list. Do I need to create a new company controller? I wouldn't have a company model b/c the company table is linked to my subcontracts table within the subcontracts dbml.

Can anyone point me to an example somewhere? Or offer any help.

© Stack Overflow or respective owner

Related posts about asp.net-mvc

Related posts about AJAX