Good, I would like to know how I can make an alert appear when I press a button, but with ajax (using jquery better), that is to say without recharging the page. The code that I have now with which I reload the page is the following:
protected void btn_cambiarContra_Click(object sender, EventArgs e)
{
if (nuevo_Password.Text==repetir_Password.Text)
{
ClientScript.RegisterStartupScript(this.GetType(),"myScript", "<script>alert('Las contraseñas coinciden');</script>");
}else
{
ClientScript.RegisterStartupScript(this.GetType(), "myScript", "<script>alert('Las contraseñas NO coinciden');</script>");
}
}