How to apply Bootstrap dropdown style to an ASP.NET MVC DropDownList?

前端 未结 6 1179
孤街浪徒
孤街浪徒 2021-01-30 08:47

Given is the following MVC razor code which creates a dropdown from a list:

@Html.DropDownList(\"MyTestList\", null, new { @class = \"btn btn-default dropdown-t         


        
6条回答
  •  不思量自难忘°
    2021-01-30 09:22

    I have got a bootstrap button working in ASP.net MVC with a real-life example that I am using at my current place of work.

    
    

    The View.user is getting the users name directly from the database. Jope this is what some of you were looking for.

提交回复
热议问题