Suoranta.WebApp.Types Namespace
Suoranta.WebApp - Developer API

WebViewPage Class

Base class for Razor views

Namespace:  Suoranta.WebApp.View
Assembly:  Suoranta.WebApp (in Suoranta.WebApp.dll)

Syntax


public abstract class WebViewPage : WebPageBase, 
	IWebViewPage

Remarks


To use on individual page, add @inherits Suoranta.WebApp.View.WebViewPage directive. To register globally, add <pages pageBaseType="Suoranta.WebApp.View.WebViewPage"> to Views\Web.config of the project.

Recommended additions to default namespaces (Views\Web.config):

  • <add namespace="Suoranta.WebApp.Kendo" />
  • <add namespace="Suoranta.WebApp.View.JS" />

Recognized ViewBag key-values:

Inheritance Hierarchy


Object
  WebPageExecutingBase
    WebPageRenderingBase
      WebPageBase
        Suoranta.WebApp.View..::..WebViewPage