日期:2014-05-17 浏览次数:21154 次
public ActionResult Index()
{
ViewBag.Message = "Welcome to ASP.NET MVC!";
Session["name"] = "创新力量";
ViewBag.Name = Session["name"] as string;
return View();
}
<input type="text" name="DevRequirementsCreateBy" id="DevRequirementsCreateBy" value = @ViewBag.Name.ToString() />