เกิดขึ้นในกรณีที่ จะ Add View ปรากฏว่า Field มันใช้แบบ multi ต้อง Add Class using System; using System.Collections.Generic; using System.Linq; using System.Web; namespace
Category: MVC 4
MVC 4 test Database & Scaffold
ถ้าจะสร้างแสดงผล
MVC 4 ViewBag รับและแสดงค่าในหน้าเว็บ
สามารถแสดงผลจาก object public ActionResult Index() { List<String> s2 = new List<string>() { “a”, “b”, “c” }; ViewBag.MyData = “Hello”;
MVC 4.0 Map Route
New Project MVC Application c# Right Click Controllers ->Add->Controller->Student Add View ใส่โค้ดตามตัวอย่าง using System; using System.Collections.Generic; using System.Linq; using System.Web;
