This topic is locked
[SOLVED]

 Can anyone help? Displaying message inside custom button

12/2/2017 1:03:14 PM
ASPRunner.NET General questions
MK Frank R author

Should be simple to set up a custom button and then be able to display a message on the page, but I just can't get it to work, and I am under the gun.
I know how to do it from a canned event, but I'm talking about putting server side code behind a custom button.
Anyone?

MK Frank R author 12/2/2017

Ok, I'll help myself.
It takes 2 steps:

  1. Inside the Server event, store the message:
    [size="2"]
    result["ShowMessage"] = "Show this message to the user";

    [/size]


  2. Inside the Client After event, show the message:
    [size="2"] [/size]
    var message = result["ShowMessage"];

    ctrl.setMessage(message);