How to create new items within a view Create in ASP.net MVC?
I know it's a basic issue in MVC, but cant I found a simple way to accomplish this task. Within a view create (like Create User), I need to add some new items to a combobox where I select the permission level for this user. How to do this without the need to cancel the action of the inclusion of the user, create the desired leve开发者_运维问答l in a separate view and then create the User with the newly created level?
You can do something like this by using ajax javascript. You post the data to the server and use the data you get back in your form / view.
http://api.jquery.com/category/ajax/
Basic example at codeproject
Posting form using ajax
精彩评论