I get an amount N of elements of the session, how can I send it to the view and show it in a DropdownList?
or as in windowsForm it is known as a combobox
public ActionResult Index()
{
IList<CModel> c = (IList<CModel>)Session["CSeleccionado"];
ViewBag.C = new SelectList(co, "IdC", "Descripcion");
return View();
}
my view is already linked with
@model S.Controllers.R.Param
@{
ViewBag.Title = "Index";
}
I want to show it in the same view