2 Replies - 1669 Views - Last Post: 15 April 2013 - 05:26 AM Rate Topic: -----

#1 ddublya  Icon User is offline

  • New D.I.C Head

Reputation: 1
  • View blog
  • Posts: 27
  • Joined: 16-October 12

Question about master page - can I add one to CSHTML?

Posted 11 April 2013 - 09:49 AM

Ive been working on a site in WebMatrix and Ive been creating CSHTML pages, I want to add a master page in.
Is this possible? Ive been searching the net for the code to do this but cant seem to find it or do I need to use aspx pages?
Is This A Good Question/Topic? 0
  • +

Replies To: Question about master page - can I add one to CSHTML?

#2 ddublya  Icon User is offline

  • New D.I.C Head

Reputation: 1
  • View blog
  • Posts: 27
  • Joined: 16-October 12

Re: Question about master page - can I add one to CSHTML?

Posted 11 April 2013 - 10:46 AM

No worries...
It would appear I should use sitelayout.cshtml and run things that way.
Was This Post Helpful? 0
  • +
  • -

#3 Nakor  Icon User is offline

  • Professional Lurker
  • member icon

Reputation: 446
  • View blog
  • Posts: 1,501
  • Joined: 28-April 09

Re: Question about master page - can I add one to CSHTML?

Posted 15 April 2013 - 05:26 AM

yep, that's the way to do it, MasterPages are only for WebForms.

In WebPages and MVC they're layouts
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1