David Smith

David Smith

  • NA
  • 2k
  • 0

RenderBody()

Sep 14 2013 8:25 PM
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)