Luca Fu

Luca Fu

  • NA
  • 1
  • 467

Razor with include

Apr 20 2016 5:32 AM

Hello

a question...

I have a structure in Razor (NO MVC), like this:

{@
     Layout = "~/Administration/Views/Common/_ModelPage.cshtml";
     @RenderPage ("_ Pag1.cshtml");
}
....
@RenderPage ("_ Pag2.cshtml");
@RenderPage ("_ Pag3.cshtml");

I would like to manage all the variables in all the pages, how can I do?

Basically I would like the "Render" were seen as old classic ASP "include".

Thanks in advance!


Answers (1)