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

后端 未结 11 989
旧时难觅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:36

    You could always use javascript in your view page:

    
    
                                     
                  
提交回复
热议问题