ContentPlaceHolder in Razor?

daa
daa
4 Points
2 Posts

Hi,

How can I use contentplaceholder in razor

Views: 9568
Total Answered: 1
Total Marked As Answer: 1
Posted On: 15-Jun-2015 08:30

Share:   fb twitter linkedin
Answers
Jak
Jak
908 Points
132 Posts
         

Hi Daa,

Use in Layout page:

@RenderSection("footer", false)

 In View Page:

 
<p>
The current date and time: @DateTime.Now
</p>
@section footer {
Copyright (c) 2015, xyz.
}

 

Posted On: 15-Jun-2015 09:17
 Log In to Chat