IDI am using the following code to create a drop down list:
@for (var index = 0; index < Model.AdminSummaries.Count(); index++)
{
&
For those wondering why this doesn't work, the whole thing is case sensitive and need an @ in front of it...
so, this works:
new { @id = "myID", @Name = "myName", @Value = "myValue", @class = "form-control", @onchange = "javascript:DoSomething(this.value);" }
And this doesn't (mind the lowercase 'n' in @name
)
new { @id = "myID", @name = "myName", @Value = "myValue", @class = "form-control", @onchange = "javascript:DoSomething(this.value);" }