简体   繁体   中英

Updating a form from a partial view from JQuery

I'm a freshman in ASP MVC3 and very very very freshman in JQuery

I'm working on an ordering process for some items, how it's working currently is when the user clicks on the 'Create Order' link,they are taken to a list of the items to be ordered (formatted using a table) and after clicking on an item, a form loads containing details of the selected item, at this point the user can add additional information on the form before creating the order.

I would like to simplify this process by having the user work from one view. I would like this view to have the above mentioned form and a partial of the item list mentioned above, so that when the user selects an item on the partial, the form is loaded with the item details without opening a new page.

QUESTION is, how do I load up the form with the selected item in the partial view? I'm stuck at the JQuery part, no idea how this script will look like.

I guess that you could take a look at AJAX . Maybe even read some tutorials or watch a couple of videos and learn how it could integrate with ASP.NET MVC could be useful for your current and future projects. Of course you shouldn't hesitate to come back to Stack Overflow once you have a specific question to ask. You could show your efforts and code, explain the difficulties you have encountered and we would have a common base for discussion.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM