DropDown in .Net MVC3

前端 未结 3 2017
盖世英雄少女心
盖世英雄少女心 2021-01-28 03:08

I am trying to create a dropdonw in my MVC web application.

Model

namespace projectname.Models 
{
public class DropDownModel
    {
         public int i         


        
3条回答
  •  迷失自我
    2021-01-28 03:51

    You need to give your View the Model which is the listItem.

    return View(listItem);

提交回复
热议问题