//Action方法接受有:如下四种:
        //Test(int id) 接受url路由中配置的同名参数
        //通过request.Form/request.querystring 接受(get)
        //Test(Models.authors model)//模型绑定
        //Test(FormCollection form)

  //Action方法输出返回值:
        //string 
        //ActionResult 
        //jsonResult

Models.authors modelsauthors = new authors() { au_fname = "德国传智播客。。。" };


ViewData.Model = modelsauthors;


// View视图中 @ViewData.Model.au_fname

 @Model.au_fname

 传到视图:
ViewBag
ViewData
tempData
Model

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-25
  • 2021-11-17
  • 2021-12-19
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-01-21
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案