Tech
Forums
Jobs
Books
Events
Interviews
Live
More
Learn
Training
Career
Members
Videos
News
Blogs
Login
Sign Up
Ask Question
4
Reply
How to load dropdownbox with 2 value?
Niyazi Toros
May 26 2016 7:43 AM
260
Reply
Hi,
In below code I need to get CustomerSurname as well. In the dropdown box I must show customer surname as:
"CustomerName"
+ " " +
"CustomerSurname".
// GET: APPROVALs/Create
public
ActionResult Create()
{
ViewBag.CUSTID =
new
SelectList(db.CUSTOMER,
"CUSTID"
,
"CustomerName"
);
return
View();
}
I also need the "
db.CUSTOMER
" must only get a customer list where CustomerActive = False...
Any help please,
Kind Regards,
Upload Source Code
Select only zip and rar file.
Post
Reset
Cancel
Answers (
4
)
Next Recommended Forum
Benifits, in which senario & when to use AutoMapper in MVC?
How to save data from gridview to database