=?Utf-8?B?cm9kY2hhcg==?= <(E-Mail Removed)> wrote in
news:1AFAA409-2EE6-4477-AC14-(E-Mail Removed):
> found snippet that worked:
>
> AppointmentDurations = new SelectList(
> new[]
> {
> new { Value = 15, Name = "15 Minutes" },
> new { Value = 30, Name = "30 Minutes" },
> new { Value = 60, Name = "60 Minutes" }
> }
> , "Value", "Name");
>
> btw, what does new[] mean?.
Essentially, the code states:
Set up a new Select List and load it with a new array with 3 name value
pairs.
The new[] states that you are creating the class array.
peace and grace,
--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA
Twitter: @gbworld
Blog:
http://gregorybeamer.spaces.live.com
*******************************************
| Think outside the box! |
*******************************************