Click here to Skip to main content
12,953,541 members (51,105 online)
Click here to Skip to main content

Stats

0 views
Posted 16 Jan 2013

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 4:24 Available Sheikh Muhammad Haris
Updates in content. 28 changes had been made.
2 No 16-Jan-13 3:03 Available Sheikh Muhammad Haris
Updates in content. 81 changes had been made.
1 No 16-Jan-13 3: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


You may also be interested in...

Permalink | Advertise | Privacy | Terms of Use | Mobile
Web02 | 2.8.170525.1 | Last Updated 16 Jan 2013
Article Copyright 2013 by Sheikh Muhammad Haris
Everything else Copyright © CodeProject, 1999-2017
Layout: fixed | fluid