• How to pass drop down list using ViewBag in ASP.NET MVC?

    by  • November 7, 2015 • Microsoft .NET Framework, Microsoft ASP.NET, Microsoft ASP.NET MVC • 0 Comments

    There are multiple ways to pass drop down list from controller to view in ASP.NET MVC. Use ViewBag property as list container passes your list into a dynamic property of ViewBag and use it into view part. In this article I will explain how to pass drop down list using ViewBag in ASP.NET MVC.



    Add below code in view.cshtml.

    Best WordPress Themes and Plugins with Great Team and Support!

    Avatar of Abdul Rehman


    Abdul Rehman writes on .NET technologies at GetCodeSnippet.com. GetCodeSnippet.com provides you high quality Microsoft .NET development related articles, tutorials and sample code for ASP.NET, C#, VB.NET, AJAX, WCF, WPF, Web Services, Windows Services, SQL Server and other technologies.


    Leave a Reply