List<string> countries=new List<string>(); countries.Add(\"India\"); countries.Add(\"USA\"); countries.Add(\"Canada\"); ViewBag.Countries=countries; //here Countries is a dynamic property associated with the Viewbag.
List<string> countries=new List<string>();
countries.Add("India");
countries.Add("USA");
countries.Add("Canada");
ViewBag.Countries=countries; //here Countries is a dynamic property associated with the Viewbag.