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

Posted by bh213 on Stack Overflow See other posts from Stack Overflow or by bh213
Published on 2008-11-28T20:40:13Z Indexed on 2010/04/11 10:03 UTC
Read the original article Hit count: 320

Filed under:
|
|

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 page which can mess with HTML code. So, lets assume no server side controls, only pure html. Any better ideas?

UPDATE: I would like to set title in view NOT in the controller or model.

© Stack Overflow or respective owner

Related posts about ASP.NET

Related posts about asp.net-mvc