Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我真的很难获得从单选按钮列表中选择到控制器的值。
请帮助我,任何帮助都非常感谢。
如果你使用
@Html.RadioButtonFor(x => x.loan, "create/update")
该值将通过模型传回。您目前如何拥有它,您可以使用从视图中获取列表的值
Request.Form["loan"].ToString()