I have users table, it has id, name last name
I have a linq to sql class
I want a dropdownlist that has id for value and has NAME AND LASTNAME for text.... how can i do this?
ViewData["User_Id"] = new SelectList(UsersRepository.GetAll(), "Id", "Name");
works just fine but I want
ViewData["User_Id"] = new SelectList(UsersRepository.GetAll(), "Id", "Name "+" Last_Name");
which doesnt work... help please