In this example I am going to explain How to create DropDownList using MVC .net.Here, I am binding the MVC dropdownlist from model object (myDatabaseEntity) using entity framework.
In this article, I will show you how to get string connection from web.config file in asp.net using c#. Two ways to write the connection string in web.config file as,