public int Id {get; set;} public string Name {get;set;} public string College {get;set;}
ViewBag.Name = "Steve"
name: @ViewBag.Name
class Student { public int Id {get; set;} public string Name {get;set;} public string College {get;set;} }
Student objStudent = new Student(); ViewBag.Student = objStudent;
@{ var Student = ViewBag.Student; <input type="text" value="@Student.Name"> }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)