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
suman goud
NA
176
54.1k
How to bind data in two drop down list in single action
Aug 3 2016 7:33 AM
i have two drop down list in my view page, am binding data to one drop down on one condition,
how to bind data to another drop down with different condition. am using entity model
public ActionResult Index()
{
TestDemoEntities objentity = new TestDemoEntities();
List<MasterNode> objCustomerList = (objentity.MasterNodes.Where(x => x.Type == "Master")).ToList();
SelectList objmodeldata = new SelectList(objCustomerList, "EmpID", "Name", 0);
CustomerModel objCustomerModel = new CustomerModel();
objCustomerModel.CustomerListModel = objmodeldata;
return View(objCustomerModel);
}
view
@Html.DropDownList("ddlCustomer", Model.CustomerListModel)
i want to bind data to one more drop down with different condition
Reply
Answers (
1
)
How to stop auto-fill in all browsers for password?
Run Time Error in My Project