Wednesday, April 24, 2019

Static DropDown in Razor Fill Normal

 @{
          var list = new SelectList(new[] { "P","H","S","A","M","L","E" });
 }
                         
 @Html.DropDownList("selected", list,  new { @class = "form-control  mb-2", @placeholder = "Selected Attendace" })
                     
@Html.DropDownList("unselected", list, new { @class = "form-control  mb-2", @placeholder = "Unselected Attendace" })
                       

No comments:

Post a Comment

Linq Expression syntax for where condtion in linq

(Expression<Func<T, bool>> filter)