Click here to Skip to main content
12,403,535 members (71,331 online)
Click here to Skip to main content

Stats

0 views
Posted

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

, 16 Jan 2013 CPOL
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
3 - 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 | Terms of Use | Mobile
Web01 | 2.8.160721.1 | Last Updated 16 Jan 2013
Article Copyright 2013 by Sheikh Muhammad Haris
Everything else Copyright © CodeProject, 1999-2016
Layout: fixed | fluid