我有一个视图中的这个下拉列表,我用数据库中的值填充。我结合一些值,并把它们对齐: foreach (DataRow dr in dt.Rows)
{
string loc = dr.IsNull("STATEGEOG_LOC_NAME") ? "" : dr["STATEGEOG_LOC_NAME"].ToString();
我是使用MVC方法的新手。如何在MVC中使用DropDownListfor?我需要从我的主表中获取列表,并将该选项显示在Business Profile对象的Business Premise中。 这是我的ViewModel public class SMEAppViewModel
{
public WP2PBusinessProfile BuisinessProfile { ge