1
Answer

RenderBody()

David Smith

David Smith

11y
3.1k
1
MVC 4


Can someone explain what RenderBody() does in detail. I am new to MVC.

<!DOCTYPE html>

<html>
<head>
    <meta name="viewport" content="width=device-width" />
    <title>@ViewBag.Title</title>
    <link href="@Url.Content("~/myCss.css")" rel="stylesheet" />
</head>
<body>
    <div>
        @RenderBody()
    </div>
</body>
</html>

Answers (1)