locked
How to select multiple value from drop down list? RRS feed

  • Question

  • User-552477072 posted

    Hi 

    I am in trouble in multiple drop down selection. 

    My drop down is as: 

    Controller: 

    public ActionResult DropDownBox(string dropdownbox)
    {
        ModelVariables model= new ModelVariables();
        model.dropDownList = dropdownbox;
        return this.View("Index", model);
    }


    View Portion: 

    @using
    (Html.BeginForm("DropDownBox", "Home", FormMethod.Get)) { @Html.DropDownList("dropdownbox", ) <button type="submit"></button> } <p>@Model.dropDownList</p>
    To select multiple items which portion I should update? Can anyone help me? Thanks for your help!
    Friday, November 30, 2018 3:13 AM

Answers

All replies