TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Niyazi Toros
NA
41
6.7k
How to load dropdownbox with 2 value?
May 26 2016 7:43 AM
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,
Reply
Answers (
4
)
IN Country and states drop dows ....states or not populating
How to save data from gridview to database