show list in razor MVC3
I have an entit开发者_如何学JAVAy which has a list of some object and I want to let the user to add as much as he want from that object so that I can put them in the list. how can I create that in razor view? should I use Ajax and if yes how?
You may take a look at the following blog post. It was written for ASP.NET MVC 2, but it is very good and those notions still apply in ASP.NET MVC 3. Adapting it to Razor would be trivial.
精彩评论