1.

What Is Layout In Mvc?

Answer»

Layout pages are SIMILAR to master pages in traditional web forms. This is USED to set the common LOOK across MULTIPLE pages. In each child page we can FIND – /p>

@{

Layout = "~/Views/Shared/TestLayout1.cshtml";

}

This indicates child page uses TestLayout page as it’s master page.

Layout pages are similar to master pages in traditional web forms. This is used to set the common look across multiple pages. In each child page we can find – /p>

@{

Layout = "~/Views/Shared/TestLayout1.cshtml";

}

This indicates child page uses TestLayout page as it’s master page.



Discussion

No Comment Found