November Happy Hour will be moved to Thursday December 5th.

Class CommandManager

Inheritance
System.Object
CommandManager
Implements
System.Web.UI.IPostBackEventHandler
Namespace: Mediachase.BusinessFoundation
Assembly: Mediachase.BusinessFoundation.dll
Version: 13.30.0
Syntax
public class CommandManager : UserControl, IPostBackEventHandler

Constructors

CommandManager()

Declaration
public CommandManager()

Properties

ContainerId

Gets or sets the container id element for OpenModalPopup controls.

Declaration
public string ContainerId { get; set; }
Property Value
Type Description
System.String

The container id.

EnableViewState

Gets or sets a value indicating whether the server control persists its view state, and the view state of any child controls it contains, to the requesting client.

Declaration
public override bool EnableViewState { get; set; }
Property Value
Type Description
System.Boolean

InfoMessage

Declaration
public string InfoMessage { get; set; }
Property Value
Type Description
System.String

Methods

AddCommand(String, String, String, CommandParameters)

Declaration
public string AddCommand(string className, string viewName, string placeName, CommandParameters cp)
Parameters
Type Name Description
System.String className
System.String viewName
System.String placeName
CommandParameters cp
Returns
Type Description
System.String

AddCommand(String, String, String, CommandParameters, out Boolean)

Declaration
public string AddCommand(string className, string viewName, string placeName, CommandParameters cp, out bool isEnabled)
Parameters
Type Name Description
System.String className
System.String viewName
System.String placeName
CommandParameters cp
System.Boolean isEnabled
Returns
Type Description
System.String

AddCommand(String, String, String, String)

Adds the command to the CommandManager.

Declaration
public void AddCommand(string className, string viewName, string placeName, string commandName)
Parameters
Type Name Description
System.String className

Name of the class.

System.String viewName

Name of the view.

System.String placeName

Name of the place.

System.String commandName

Name of the command.

AddCommand(String, String, String, String, Dictionary<String, String>)

Adds the command with parameters to the CommandManager.

Declaration
public string AddCommand(string className, string viewName, string placeName, string commandName, Dictionary<string, string> listParams)
Parameters
Type Name Description
System.String className

Name of the class.

System.String viewName

Name of the view.

System.String placeName

Name of the place.

System.String commandName

Name of the command.

System.Collections.Generic.Dictionary<System.String, System.String> listParams

The list of parameters.

Returns
Type Description
System.String

AddCommand(String, String, String, String, Dictionary<String, String>, out Boolean)

Declaration
public string AddCommand(string className, string viewName, string placeName, string commandName, Dictionary<string, string> listParams, out bool isEnabled)
Parameters
Type Name Description
System.String className
System.String viewName
System.String placeName
System.String commandName
System.Collections.Generic.Dictionary<System.String, System.String> listParams
System.Boolean isEnabled
Returns
Type Description
System.String

AddCommandToButton(Button, String, String, String, String, Dictionary<String, String>)

Adds the command script to button.

Declaration
public void AddCommandToButton(Button btn, string className, string viewName, string placeName, string commandName, Dictionary<string, string> listParams)
Parameters
Type Name Description
System.Web.UI.WebControls.Button btn

The button.

System.String className

Name of the class.

System.String viewName

Name of the view.

System.String placeName

Name of the place.

System.String commandName

Name of the command.

System.Collections.Generic.Dictionary<System.String, System.String> listParams

The list of parameters.

GetCommandString(String, Dictionary<String, String>)

Gets the command string without Params section.

Declaration
public static string GetCommandString(string commandName, Dictionary<string, string> listParams)
Parameters
Type Name Description
System.String commandName

Name of the command.

System.Collections.Generic.Dictionary<System.String, System.String> listParams

The list params.

Returns
Type Description
System.String

GetContainer()

Gets the container for ModalFramePopup controls.

Declaration
public Control GetContainer()
Returns
Type Description
System.Web.UI.Control

GetCurrent(Page)

Gets the CommandManager instance.

Declaration
public static CommandManager GetCurrent(Page _page)
Parameters
Type Name Description
System.Web.UI.Page _page

The _page.

Returns
Type Description
CommandManager

IsEnable(String, Dictionary<String, String>)

Declaration
public bool IsEnable(string commandName, Dictionary<string, string> listParams)
Parameters
Type Name Description
System.String commandName
System.Collections.Generic.Dictionary<System.String, System.String> listParams
Returns
Type Description
System.Boolean

IsEnableCommand(String, String, String, String)

Gets the command string.

Declaration
public static bool IsEnableCommand(string className, string viewName, string placeName, string commandName)
Parameters
Type Name Description
System.String className

Name of the class.

System.String viewName

Name of the view.

System.String placeName

Name of the place.

System.String commandName

Name of the command.

Returns
Type Description
System.Boolean

true if [is enable command] [the specified class name]; otherwise, false.

OnLoad(EventArgs)

Raises the System.Web.UI.Control.Load event.

Declaration
protected override void OnLoad(EventArgs e)
Parameters
Type Name Description
System.EventArgs e

The System.EventArgs object that contains the event data.

OnPreRender(EventArgs)

Raises the System.Web.UI.Control.PreRender event.

Declaration
protected override void OnPreRender(EventArgs e)
Parameters
Type Name Description
System.EventArgs e

An System.EventArgs object that contains the event data.

RaisePostBackEvent(String)

When implemented by a class, enables a server control to process an event raised when a form is posted to the server.

Declaration
public void RaisePostBackEvent(string eventArgument)
Parameters
Type Name Description
System.String eventArgument

A System.String that represents an optional event argument to be passed to the event handler.

Render(HtmlTextWriter)

Sends server control content to a provided System.Web.UI.HtmlTextWriter object, which writes the content to be rendered on the client.

Declaration
protected override void Render(HtmlTextWriter writer)
Parameters
Type Name Description
System.Web.UI.HtmlTextWriter writer

The System.Web.UI.HtmlTextWriter object that receives the server control content.

RunHandler(String, String, String, String, CommandParameters)

Gets the command string without Params section.

Declaration
public void RunHandler(string className, string viewName, string placeName, string commandName, CommandParameters cp)
Parameters
Type Name Description
System.String className

Name of the class.

System.String viewName

Name of the view.

System.String placeName

Name of the place.

System.String commandName

Name of the command.

CommandParameters cp

The command parameters.

Implements

System.Web.UI.IPostBackEventHandler