Base web page implementation of the IView<(Of <(T>)>) interface. Has a strongly typed association to the controller (of the parameter type T).

It is recommended to inherit your web view classes from this one instead of manually implementing the IView<(Of <(T>)>) interface.

Namespace:  MVCSharp.Webforms
Assembly:  MVCSharp (in MVCSharp.dll)
Version: 0.8.5217.34148


public class WebFormView<T> : Page, IView<T>, 
	IView where T : class, IController
Visual Basic (Declaration)
Public Class WebFormView(Of T As {Class, IController}) _
	Inherits Page _
	Implements IView(Of T), IView
Visual C++
generic<typename T>
where T : ref class, IController
public ref class WebFormView : public Page, 
	IView<T>, IView

Type Parameters

Specifies the expected type of the associated controller. Must be a subtype of IController


In this example we declare a view type by deriving it from the WebFormView<T> class without a need to manually implement the IView<T> interface.
public partial class MyView : WebFormView<MyController>
    private DoActionButton_Click(object sender, EventArgs e)

Inheritance Hierarchy

        MVCSharp.Webforms..::.WebFormView<(Of <(T>)>)

See Also