Click here to Skip to main content
Click here to Skip to main content
Add your own
alternative version

ASP.NET MVC - Help needed to Improve the code for mvc's Drop-Down Box?

, 16 Jan 2013
Hi,Try the following code [HttpGet]public ActionResult Index(){ ViewBag.CitiesDropDown = GetCityList(); return View();}private List GetCityList(){ //Here you can access DB to get your required data. Just make sure the return type ...

Revisions


  

Compare Revision Minor Date Status Editor
publicly available No 16-Jan-13 10:24 Available Sheikh Muhammad Haris
Updates in content. 28 changes had been made.
2 No 16-Jan-13 9:03 Available Sheikh Muhammad Haris
Updates in content. 81 changes had been made.
1 No 16-Jan-13 9:02 Available Sheikh Muhammad Haris

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Share

About the Author


| Advertise | Privacy | Mobile
Web01 | 2.8.140827.1 | Last Updated 16 Jan 2013
Article Copyright 2013 by Sheikh Muhammad Haris
Everything else Copyright © CodeProject, 1999-2014
Terms of Service
Layout: fixed | fluid