Skip to main content
not related to MVC design pattern; edited tags
Link
tereško
  • 58.5k
  • 26
  • 100
  • 151
added 5 characters in body
Source Link
shift66
  • 12k
  • 13
  • 54
  • 83

I useam using ASP.NET MVC 3 and have some parts written using aspx. So in some of my views I have something like this

<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" AutoEventWireup="true" CodeBehind="Index.aspx.cs" Inherits="Thread.Index" %> 

But I've already create Layout for site using Razor's Layout and I want to use that layout in this .aspx file too... 
How can i achieve this?

I use ASP.NET MVC 3 and have some parts written using aspx. So in some of my views I have something like this

<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" AutoEventWireup="true" CodeBehind="Index.aspx.cs" Inherits="Thread.Index" %> 

But I've already create Layout for site using Razor's Layout and I want to use that layout in this .aspx file too... How can i achieve this?

I am using ASP.NET MVC 3 and have some parts written using aspx. So in some of my views I have something like this

<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" AutoEventWireup="true" CodeBehind="Index.aspx.cs" Inherits="Thread.Index" %> 

But I've already create Layout for site using Razor's Layout and I want to use that layout in this .aspx file too. 
How can i achieve this?

Source Link
Chuck Norris
  • 15.2k
  • 15
  • 96
  • 128

How to use Razor Layout as Master Page in ASP.NET MVC

I use ASP.NET MVC 3 and have some parts written using aspx. So in some of my views I have something like this

<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" AutoEventWireup="true" CodeBehind="Index.aspx.cs" Inherits="Thread.Index" %> 

But I've already create Layout for site using Razor's Layout and I want to use that layout in this .aspx file too... How can i achieve this?