top button
Flag Notify
    Connect to us
      Facebook Login
      Site Registration

Facebook Login
Site Registration

Unable to share the footer across templates in Razor View.

0 votes

I am working on a Web Api application and below is the razor templates used in my code.

enter image description here

The _layout.cshtml page contains footer which needs to be shared across the other templates. Below is the footer to be shared across templates.

<p> This is footer </p>

I have tried using the following to share the footer but it is not rendering the page.

 @model SR.Services.External.Data.EmailNotificationModel
<body style=\"color:#808080;font-size:8pt;font-family:Arial\">
        Hi @Model.TargetUserName,
        You have been removed from community '@Model.ObjectName' by @Model.Initiator.


Any help is appreciated.

posted Jul 6, 2017 by Rohini Agarwal

Looking for an answer?  Promote on:
Facebook Share Button Twitter Share Button LinkedIn Share Button

Contact Us
+91 9880187415
#280, 3rd floor, 5th Main
6th Sector, HSR Layout
Karnataka INDIA.