View Full Version : [CLOSED] Open URL after MessageBox OK

Apr 01, 2014, 7:26 PM
Hi, How Can I Do to stop of the Complete property in DirectEvent Click?, becasuse I want to fire a message with MessageBox and I want the user to set click in the button "OK" when fire of "Complete" script.

<ext:Button ID="Button1" runat="server" Text="Submit">
<Click OnEvent="Button1_Click" Complete="window.location = 'http://www.ext.net'" />

protected void Button1_Click(object sender, DirectEventArgs e)
X.Msg.Alert("Importar Usuario", "El usuario OESPARZA ha sido importado para utilizar SigloLab con el perfil Perfil01.").Show();

Apr 02, 2014, 2:06 AM
Hi @osef,

There is no way to do exactly what you are asking, but you should use an Alert's callback.

X.Msg.Alert("title", "message", >> a JFunction here <<).Show();

It triggers when a user closes an alert window.