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

WebViewPage<(Of <(<'TModel>)>)> Class

Base class for views with Model

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

Syntax


public abstract class WebViewPage<TModel> : WebViewPage, 
	IWebViewPage

Type Parameters

TModel

Remarks


To use on individual page, add @inherits Suoranta.WebApp.View.WebViewPage<T> 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
        WebViewPage
          Suoranta.WebApp.View..::..WebViewPage<(Of <(<'TModel>)>)>