Search Results

Search found 1 results on 1 pages for 'barrigon'.

Page 1/1 | 1 

  • How can I add an item to a SelectList in ASP.net MVC

    - by Barrigon
    Basically I am looking to insert an item at the beginning of a SelectList with the default value of 0 and the Text Value of " -- Select One --" Something like SelectList list = new SelectList(repository.func.ToList()); ListItem li = new ListItem(value, value); list.items.add(li); Can this be done? Cheers

    Read the article

1