Hello,
On my view I have a DropDownList that should contain the usual targets of an HTML anchor: _blank, _self, ...
I want the names to be different from the values so I am passing to my view in the ViewData a SelectList named Targets:
SelectList targets;
targets.Items.Add("Blank", "_blank");
I am getting an error on adding the items. Add is not recongnized.
Any idea what I am doing wrong here?
Thanks,
Miguel