开发者

ASP MVC DropDownList returns 0

开发者 https://www.devze.com 2022-12-14 23:44 出处:网络
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 threa

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.

ASP MVC DropDownList returns 0

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消