In what way you should send a message type alert, from an asp.net form.
Currently I used this:
if (user._contraseña.Equals(claveI))
{
ClientScript.RegisterStartupScript(this.GetType(), "alert", "alert('Bienvenido: ');", true);
}
else
{
ClientScript.RegisterStartupScript(this.GetType(), "alert", "alert('Clave incorrecta');", true);
txtContraseña.Text = "";
}
but this only allows me to send a string, if I want to add an extra variable, it does not send any alert.
if (user._contraseña.Equals(claveI))
{
String nombre = user.nombreCompleto();
ClientScript.RegisterStartupScript(this.GetType(), "alert", "alert('Bienvenido: ');"+nombre, true);
}
else
{
ClientScript.RegisterStartupScript(this.GetType(), "alert", "alert('Clave incorrecta');", true);
txtContraseña.Text = "";
}