WeavyController.Alert Method

Namespace:
Weavy.Web.Controllers
Assembly:
Weavy.Web.dll

Overloads

Alert(AlertModel) Injects an alert message to be displayed on next page load.
Alert(AlertType, string) Injects an alert message to be displayed on next page load.
Alert(AlertType, string, bool, bool, bool, bool) Injects an alert message to be displayed on next page load.
Alert(ModelStateDictionary) Injects an validation alert to be displayed on next page load.
Alert(string) Injects an success message to be displayed on next page load.

Alert(AlertModel)

Injects an alert message to be displayed on next page load.

public void Alert(AlertModel alert)

Parameters

alert
AlertModel

The alert to display,

Alert(AlertType, string)

Injects an alert message to be displayed on next page load.

public void Alert(AlertType type, string message)

Parameters

type
AlertType

The type of alert to display, i.e. info, success, warning or danger.

message
string

The message to display

Alert(AlertType, string, bool, bool, bool, bool)

Injects an alert message to be displayed on next page load.

public void Alert(AlertType type, string message, bool dismissible = true, bool sticky = false, bool html = false, bool inline = false)

Parameters

type
AlertType

The type of alert to display, i.e. info, success, warning or danger.

message
string

The message to display

dismissible
bool
sticky
bool
html
bool
inline
bool

Alert(ModelStateDictionary)

Injects an validation alert to be displayed on next page load.

public void Alert(ModelStateDictionary modelState)

Parameters

modelState
System.Web.Mvc.ModelStateDictionary

If not null, a validation summary will be displayed in the alert.

Alert(string)

Injects an success message to be displayed on next page load.

public void Alert(string message)

Parameters

message
string

The message to display