Class ModulePresenterBase<TView>
Inheritance
ModulePresenterBase<TView>
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
Constructors
ModulePresenterBase(TView)
Declaration
protected ModulePresenterBase(TView view)
Parameters
| Type |
Name |
Description |
| TView |
view |
|
Properties
AllowAnonymousAccess
Declaration
protected virtual bool AllowAnonymousAccess { get; }
Property Value
AutoDataBind
Declaration
public bool AutoDataBind { get; set; }
Property Value
IsEditable
Declaration
public bool IsEditable { get; set; }
Property Value
IsPostBack
Declaration
public bool IsPostBack { get; set; }
Property Value
IsSuperUser
Declaration
public bool IsSuperUser { get; set; }
Property Value
IsUserAuthorized
Declaration
protected virtual bool IsUserAuthorized { get; }
Property Value
LocalResourceFile
Declaration
public string LocalResourceFile { get; set; }
Property Value
ModuleContext
Declaration
public ModuleInstanceContext ModuleContext { get; set; }
Property Value
ModuleId
Declaration
public int ModuleId { get; set; }
Property Value
ModuleInfo
Declaration
public ModuleInfo ModuleInfo { get; set; }
Property Value
PortalId
Declaration
public int PortalId { get; set; }
Property Value
Settings
Declaration
public Dictionary<string, string> Settings { get; set; }
Property Value
TabId
Declaration
public int TabId { get; set; }
Property Value
UserId
Declaration
public int UserId { get; set; }
Property Value
Validator
Declaration
public Validator Validator { get; set; }
Property Value
Methods
CheckAuthPolicy()
Declaration
protected virtual bool CheckAuthPolicy()
Returns
LoadFromContext()
Declaration
protected virtual void LoadFromContext()
LocalizeString(string)
Declaration
protected virtual string LocalizeString(string key)
Parameters
| Type |
Name |
Description |
| string |
key |
|
Returns
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
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
SaveState(StateBag)
Declaration
public virtual void SaveState(StateBag stateBag)
Parameters
ShowMessage(string, ModuleMessageType)
Declaration
protected void ShowMessage(string message, ModuleMessage.ModuleMessageType messageType)
Parameters
ShowMessage(string, ModuleMessageType, bool)
Declaration
protected void ShowMessage(string message, ModuleMessage.ModuleMessageType messageType, bool localize)
Parameters
ShowMessage(string, string, ModuleMessageType)
Declaration
protected void ShowMessage(string messageHeader, string message, ModuleMessage.ModuleMessageType messageType)
Parameters
ShowMessage(string, string, ModuleMessageType, bool)
Declaration
protected void ShowMessage(string messageHeader, string message, ModuleMessage.ModuleMessageType messageType, bool localize)
Parameters
Extension Methods