示例#1
0
 public ActionResult MultiSelection(ProductWithColours product)
 {
     // The multi selection posted results come back in
     // as you would expect, a collection of strings
     string result = string.Join(", ", product.Colours.ToArray());
     return Content(result);
 }
        public ActionResult MultiSelection(ProductWithColours product)
        {
            // The multi selection posted results come back in
            // as you would expect, a collection of strings
            string result = string.Join(", ", product.Colours.ToArray());

            return(Content(result));
        }
 public HomeController()
 {
     this.widget            = new Product();
     this.widgetWithSize    = new ProductWithSize();
     this.widgetWithColours = new ProductWithColours();
 }