setting the page title, meta info in a view in asp.net mvc 4

前端 未结 4 1715
不知归路
不知归路 2021-02-12 15:04

I am very new to MVC and I am updating a web form application to mvc. I have a shared layout (masterpage in webforms), I would like to set the meta and title information per vie

4条回答
  •  谎友^
    谎友^ (楼主)
    2021-02-12 15:34

    You need to set Viewbag.Title These articles look relevant and will give you some pointers:

    • How do I access a ViewBag.Title after it has been set by the underlying View?
    • In a Razor view how can I insert the page title without a

提交回复
热议问题