ContentPlaceHolder in Razor?

daa
daa
4 Points
2 Posts

Hi,

How can I use contentplaceholder in razor

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

Share:   fb twitter linkedin
Answers
Jak
Jak
Member
364 Points
152 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