Base web page implementation of the IView<(Of <(T>)>)
interface. Has a strongly typed association to the controller
(of the parameter type T).
Namespace:
MVCSharp.WebformsIt is recommended to inherit your web view classes from this one instead of manually implementing the IView<(Of <(T>)>) interface.
Assembly: MVCSharp (in MVCSharp.dll)
Version: 0.8.5217.34148
Syntax
C# |
---|
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
- T
- Specifies the expected type of the associated controller. Must be a subtype of IController
Examples
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.
CopyC#

public partial class MyView : WebFormView<MyController> { private DoActionButton_Click(object sender, EventArgs e) { Controller.MyAction(); } }
Inheritance Hierarchy
System..::.Object
System.Web.UI..::.Control
System.Web.UI..::.TemplateControl
System.Web.UI..::.Page
MVCSharp.Webforms..::.WebFormView<(Of <(T>)>)
System.Web.UI..::.Control
System.Web.UI..::.TemplateControl
System.Web.UI..::.Page
MVCSharp.Webforms..::.WebFormView<(Of <(T>)>)