I have started learning Asp.Net MVC and the Problem is that when i add a new view named Index.cshtml
it automatically takes Html from Layout Page
. I don't know what is happening here.
Index.cshtml :-
@{
ViewBag.Title = "Index";
}
<h2>Index</h2>
Layout Page :-
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width" />
<title>@ViewBag.Title</title>
@Styles.Render("~/Content/css")
@Scripts.Render("~/bundles/modernizr")
</head>
<body>
<p>This is a Layout Page....</p>
@RenderBody()
@Scripts.Render("~/bundles/jquery")
@RenderSection("scripts", required: false)
</body>
</html>