Chris Anderson Total Post:197 Points:985 Posted by Chris Anderson September-17-2011 2:40 AM ASP.NET MVC ASP.NET MVC 1 Answer(s) 6556 View(s) Ratings: Rate this:
Chris Anderson Post:197 Points:985 How to create dynamic property with the help of ViewBag in Asp.net MVC? Posted on 6 years ago 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.
Post:197
Points:985How to create dynamic property with the help of ViewBag in Asp.net MVC?
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.