PDA

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



osef
Apr 01, 2014, 8: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">
<DirectEvents>
<Click OnEvent="Button1_Click" Complete="window.location = 'http://www.ext.net'" />
</DirectEvents>
</ext:Button>




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();
}

Daniil
Apr 02, 2014, 3: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.