ASP.Net MVC 3 Razor Response.Write position

后端 未结 4 1859
醉酒成梦
醉酒成梦 2021-02-12 17:47

I am trying to update this tutorial on implementing Facebooks BigPipe to razor.

There is a html helper extension that adds a pagelet to a list, and then outputs a holdin

4条回答
  •  走了就别回头了
    2021-02-12 18:01

    You should use the ViewBag and put the string in there, then output it.

    In controller:

    ViewBag.Foo = Bar;
    

    In view:

    @ViewBag.Foo

提交回复
热议问题