Skip to content
Loading
MVC Partial Views  
  •   
  • Just i have added a layout which should not be there
    0
  • Mario Scheeren
    My main question is:
     
    Why does a PartialView have this:
     
    @{
    ViewBag.Title = "Index";
    Layout = "~/Views/Shared/_Layout.cshtml";
    }
    @**@
    @**@
     
     
    Where you call the Partial Rendering?
     
    1. class="row ">  
    2.       
    3.     class="col-md-11">  
    4.         @Html.Partial("~/Views/CostEstimate/_DetailButtons.cshtml", Model)  
    5.     
      
  •     class="col-sm-1">  
  •         class="pull-right pull-up">  
  •             "bottomLink" title="Zum Anfang">  
  •                 class="glyphicon glyphicon-arrow-up">  
  •               
  •           
  •       
  •  
  •  
    0