Tuesday, December 16, 2014

DevelopMentor: Building rich input forms in ASP.Net MVC

Below is a newer version Michael posted on youtube

https://www.youtube.com/watch?v=PDrlzgGSaSk

38.54 min save book done
47.13
52.10

LIDNUG & DevelopMentor: Building rich input forms in ASP.Net MVC


https://www.youtube.com/watch?v=6VhqQngYQ20

below is code to add "book"

In admin controller





add view



38.12 min missing category


(40.25 min) add the selectedListItem to array to the ViewBag, the name put in the ViewBag is case sensitive.


(40.54 min) add the SelectedListItem to array to the viewbag


add category to the book form




get book and cat id back and save the book then display the cat

the important thing here is the "selectedCategoryID" has to be in the parm (case does not matter), otherwise it will be null.








No comments:

Post a Comment