ContentPlaceHolder in Razor?

daa
daa
4 Points
2 Posts

Hi,

How can I use contentplaceholder in razor

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

Share:   fb twitter linkedin
Answers
Jak
Jak
Member
352 Points
151 Posts
Marked as answer      

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
banner

Blog

Active User (2)

 Log In to Chat