giving a .cshtml layout to aspx file in webmatrix or any other WebPages project

216 views Asked by At

I want to give my .cshtml layout to a aspx and its respective cs file which I have included in my webmatrix project which contains all files in cshtml (razor)please help me out guys I hv searched for it a lot and found notihing,plz help out...thanks

1

There are 1 answers

3
Mike Brind On BEST ANSWER

You cannot use a cshtml layout file with an aspx web forms file. You have to use a .master page instead.