I am using ASP.NET MVC 3 and some parts are 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 already created a Layout for the site using Razor Layout, and I want to use this layout in this .aspx file too. How can I achieve this?
Chuck norris
source share