Hi nauna,
Check this example. Now please take its reference and correct your code.
Database
For this example i have used table named Fruits.
You can download the database table SQL by clicking the download link below.
Download SQL file
Controller
public class HomeController : Controller
{
// GET: /Home/
public ActionResult Index()
{
FruitsEntities db = new FruitsEntities();
var fromdb = new SelectList(db.Fruits.ToList(), "FruitId", "FruitName");
ViewData["Fruits"] = fromdb;
var from = db.Fruits.ToList();
ViewData["Radio"] = from;
return View();
}
}
View
<div>
<%:Html.DropDownList("Fruit", (IEnumerable<SelectListItem>)ViewData["Fruits"])%>
<br />
<%for (int i = 0; i < ((List<Fruit>)ViewData["Radio"]).Count; i++)
{%>
<%:Html.RadioButton("Fruit", ((List<Fruit>)ViewData["Radio"])[i].FruitId, false)%>
<%=((List<Fruit>)ViewData["Radio"])[i].FruitName%>
<br />
<% } %>
</div>
Screenshot