asked on
@model.MWR.Models.MAINT_WORK_REQ
...lots of "MAINT_WORK_REQ" database fields in code, then below....
@Html.DropDownList("ProjectID", new List<SelectListItem>
{
new SelectListItem{ Text="CST031 - LeftHand", Value = "CST031 - LeftHand" },
new SelectListItem{ Text="CST031 - RightHand", Value = "CST031 - RightHand" }
}
)
.......@model.MWR.Models.MAINT_WORK_REQ
...lots of "MAINT_WORK_REQ" database fields in code, then below....
@Html.DropDownListFor("ProjectID", new List<SelectListItem>
{
display all values from my existing C#
GLOBAL "MWR.Models.Lookup_ProjectID" table
select ProjectID
from Lookup_ProjectID
where ProgramID = 'ABCcorp' // from URL string --> http://localhost:63802/ABCcorp/MAINT_WORK_REQ/Create
and active <> 0 // excludes inactive
}
)
The .NET Framework is not specific to any one programming language; rather, it includes a library of functions that allows developers to rapidly build applications. Several supported languages include C#, VB.NET, C++ or ASP.NET.
TRUSTED BY