top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

When the View state is saved, and when is it loaded? How to enable/ disable View states?

+2 votes
368 views
When the View state is saved, and when is it loaded? How to enable/ disable View states?
posted Jan 13, 2017 by Jdk

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

Similar Questions
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
<html>
<head>
    <title></title>
</head>
<body style=\"color:#808080;font-size:8pt;font-family:Arial\">
    <p>
        Hi @Model.TargetUserName,
    </p>
    <p>
        You have been removed from community '@Model.ObjectName' by @Model.Initiator.
    </p>

    @Html.Partial("_layout.cshtml")
    @Html.Partial("~/EmailTemplates/_layout.cshtml")
    @RenderPage("~/EmailTemplates/_layout.cshtml")
    @RenderPage("_layout.cshtml")
  </body>
</html>

Any help is appreciated.

...