ASP.NET MVC - View with master page, how to set title?

后端 未结 11 1011
旧时难觅i
旧时难觅i 2020-12-10 02:50

What is prefered way of setting html title (in head) for view when using master pages?

One way is by using Page.Title in .aspx file, but that requires in master pag

11条回答
  •  北荒
    北荒 (楼主)
    2020-12-10 03:29

    I have a base view class that sets the page title from a resource file. Works pretty good for me.

提交回复
热议问题