Hey, following my struggles with the MVC DropDownList posted here, it seems that my DropDownList always returns 0 when I submit the form. I still h开发者_如何学编程ave the same code as the other thread.
Is it because the Status and Type Tables are not linked together in the code? I really don't know where to start to look for the problem.
Thanks.
This has been answered by Terje in the comment of my original post. The name of the fields needs to match those of the table.
精彩评论