Show / Hide Table of Contents

Class ModulePresenterBase<TView>

Inheritance
object
ModulePresenterBase<TView>
ModulePresenter<TView>
ModulePresenter<TView, TModel>
ModuleSettingsPresenterBase<TView>
ModuleSettingsPresenter<TView, TModel>
Namespace: DotNetNuke.Web.Mvp
Assembly: DotNetNuke.Web.dll
Syntax
[Obsolete("Deprecated in DotNetNuke 9.2.0. Replace WebFormsMvp and DotNetNuke.Web.Mvp with MVC or SPA patterns instead. Scheduled for removal in v11.0.0.")]
public abstract class ModulePresenterBase<TView> : Presenter<TView> where TView : class, IModuleViewBase
Type Parameters
Name Description
TView

Constructors

ModulePresenterBase(TView)

Declaration
protected ModulePresenterBase(TView view)
Parameters
Type Name Description
TView view

Properties

AllowAnonymousAccess

Declaration
protected virtual bool AllowAnonymousAccess { get; }
Property Value
Type Description
bool

AutoDataBind

Declaration
public bool AutoDataBind { get; set; }
Property Value
Type Description
bool

IsEditable

Declaration
public bool IsEditable { get; set; }
Property Value
Type Description
bool

IsPostBack

Declaration
public bool IsPostBack { get; set; }
Property Value
Type Description
bool

IsSuperUser

Declaration
public bool IsSuperUser { get; set; }
Property Value
Type Description
bool

IsUserAuthorized

Declaration
protected virtual bool IsUserAuthorized { get; }
Property Value
Type Description
bool

LocalResourceFile

Declaration
public string LocalResourceFile { get; set; }
Property Value
Type Description
string

ModuleContext

Declaration
public ModuleInstanceContext ModuleContext { get; set; }
Property Value
Type Description
ModuleInstanceContext

ModuleId

Declaration
public int ModuleId { get; set; }
Property Value
Type Description
int

ModuleInfo

Declaration
public ModuleInfo ModuleInfo { get; set; }
Property Value
Type Description
ModuleInfo

PortalId

Declaration
public int PortalId { get; set; }
Property Value
Type Description
int

Settings

Declaration
public Dictionary<string, string> Settings { get; set; }
Property Value
Type Description
Dictionary<string, string>

TabId

Declaration
public int TabId { get; set; }
Property Value
Type Description
int

UserId

Declaration
public int UserId { get; set; }
Property Value
Type Description
int

Validator

Declaration
public Validator Validator { get; set; }
Property Value
Type Description
Validator

Methods

CheckAuthPolicy()

Declaration
protected virtual bool CheckAuthPolicy()
Returns
Type Description
bool

LoadFromContext()

Declaration
protected virtual void LoadFromContext()

LocalizeString(string)

Declaration
protected virtual string LocalizeString(string key)
Parameters
Type Name Description
string key
Returns
Type Description
string

OnInit()

Declaration
protected virtual void OnInit()

OnLoad()

Declaration
protected virtual void OnLoad()

OnNoCurrentUser()

Declaration
protected virtual void OnNoCurrentUser()

OnUnauthorizedUser()

Declaration
protected virtual void OnUnauthorizedUser()

ProcessModuleLoadException(Exception)

Declaration
protected void ProcessModuleLoadException(Exception ex)
Parameters
Type Name Description
Exception ex

RedirectToAccessDenied()

Declaration
protected void RedirectToAccessDenied()

RedirectToCurrentPage()

Declaration
protected void RedirectToCurrentPage()

RedirectToLogin()

Declaration
protected void RedirectToLogin()

RestoreState(StateBag)

Declaration
public virtual void RestoreState(StateBag stateBag)
Parameters
Type Name Description
StateBag stateBag

SaveState(StateBag)

Declaration
public virtual void SaveState(StateBag stateBag)
Parameters
Type Name Description
StateBag stateBag

ShowMessage(string, ModuleMessageType)

Declaration
protected void ShowMessage(string message, ModuleMessage.ModuleMessageType messageType)
Parameters
Type Name Description
string message
ModuleMessage.ModuleMessageType messageType

ShowMessage(string, ModuleMessageType, bool)

Declaration
protected void ShowMessage(string message, ModuleMessage.ModuleMessageType messageType, bool localize)
Parameters
Type Name Description
string message
ModuleMessage.ModuleMessageType messageType
bool localize

ShowMessage(string, string, ModuleMessageType)

Declaration
protected void ShowMessage(string messageHeader, string message, ModuleMessage.ModuleMessageType messageType)
Parameters
Type Name Description
string messageHeader
string message
ModuleMessage.ModuleMessageType messageType

ShowMessage(string, string, ModuleMessageType, bool)

Declaration
protected void ShowMessage(string messageHeader, string message, ModuleMessage.ModuleMessageType messageType, bool localize)
Parameters
Type Name Description
string messageHeader
string message
ModuleMessage.ModuleMessageType messageType
bool localize

Extension Methods

JsonExtensionsWeb.ToJson(object)
Back to top by the community, for the community... #DNNCMS