MessagePop Class |
At a minimum a Caption and Message (or HTML) should be provided.
Namespace: NetQuarry
The MessagePop type exposes the following members.
Name | Description | |
---|---|---|
MessagePop |
Standard constructor.
|
Name | Description | |
---|---|---|
Button1Caption |
Gets/sets the caption for Button1.
Since Button1 is only shown if its caption is not null/empty and by default Button1Caption
is null/empty, setting its caption non-null/empty has the effect of causing the button to be shown.
Note that there is no inherent handling for Button1 so if Button1 is presented it is expected that
OnButton1Click javascript is provided.
Note that Button2 is also available by setting Button2Caption.
| |
Button2Caption |
Gets/sets the caption for Button2.
Since Button2 is only shown if its caption is not null/empty and by default Button2Caption
is null/empty, setting its caption non-null/empty has the effect of causing the button to be shown.
Note that there is no inherent handling for Button2 so if Button2 is presented it is expected that
OnButton2Click javascript is provided.
Note that Button1 is also available by setting Button1Caption.
| |
Cancel |
Forces the Cancel selection for the user. When this is set, the popup will not be
displayed and the action associated with the Cancel button will be invoked.
| |
CancelCaption |
Gets/sets the caption for the Cancel button.
| |
Caption |
Gets/sets the message box caption.
If no caption is provide the caption portion of the popup is hidden.
| |
CssClass |
Gets/sets any additional CSS class(es) to be added to the message box popup.
| |
HTML |
Gets/sets the HTML content to be injected into the content portion of the popup.
You can use Message if you want a simple confirmation message (without having to worry about escaping the content for use in HTML).
| |
Message |
Gets/sets a simple message for the popup. The message will be escaped for HTML use.
If you want a message with HTML formatting, or more complex HTML content, use HTML to provide
the popup content.
Remarks
When used in a FieldConfirm event, the Message will be pre-populated
with the field's Confirmation text.
| |
NoCancel |
Suppresses the OK cancel.
| |
NoOK |
Suppresses the OK button.
| |
OK |
Forces the OK selection for the user. When this is set, the popup will not be
displayed and the action associated with the OK button will be invoked.
| |
OKCaption |
Gets/sets the caption for the OK button.
| |
OnButton1Click |
Gets/sets javascript to be added to the Button1 click handler.
Ignored unless Button1Caption is set to cause the button to be shown.
| |
OnButton2Click |
Gets/sets javascript to be added to the Button2 click handler.
Ignored unless Button2Caption is set to cause the button to be shown.
| |
OnCancelClick |
Gets/sets additional javascript to be added to the Cancel button click handler.
This does not replace the standard Cancel handling.
By default the Cancel button closes the popup and stops any further action.
Typically no additional click handling is required for the Cancel button and there is therefore, generally,
no need to set this property.
| |
OnOKClick |
Gets/sets additional javascript to be added to the OK button click handler.
This does not replace the standard OK handling.
By default the OK button closes the popup and proceeds with the action specified when invoked.
In the case of a FieldConfirm the result is to continue with the action (e.g. posting the page).
Typically no additional click handling is required for the OK button and there is therefore, generally,
no need to set this property.
|
Name | Description | |
---|---|---|
Add(String, StringCollection) |
Add a StringCollection to the object as a string array.
(Inherited from JsonSerializer.) | |
Add(String, Enum) |
Add an enum property to the object converting the enum value to an int.
(Inherited from JsonSerializer.) | |
Add(String, Int32) |
Add an int property to the object.
(Inherited from JsonSerializer.) | |
Add(String, String) |
Add a string property to the object.
(Inherited from JsonSerializer.) | |
Add(String, String) |
Add a string array property to the object.
(Inherited from JsonSerializer.) | |
Add(String, Boolean, Boolean) |
Add a boolean property to the object converting the bool value to javascript true/false keywords
or 1/0 integers depending on the value of asOneOrZero.
The default is true/false.
(Inherited from JsonSerializer.) | |
AddHtml |
Add a block of HTML as a property of the object. Note that HTML requires
special escaping including removal of CR and LF characters. Such escaping
is performed by this method and the call should NOT so escape the HTML.
(Inherited from JsonSerializer.) | |
Equals | (Inherited from Object.) | |
Finalize | Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.) | |
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
InitYesNo |
Sets up the Yes/No captions from resource file
| |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
ToString |
Generate the javascript expression defining the JSON object.
(Inherited from JsonSerializer.) |
Name | Description | |
---|---|---|
EqualValue |
Determines if the object value is equal to another object. If the two objects are null, then this returns true.
There is special handling for guid comparisons (since a guid could be a string formatted in up to 3 different ways).
If the special guid handling is not performed, then the object.Equals method is used.
(Defined by EAPUtil.) |