Hi, I have a project in ASP .NET with C # I have a form to change my password, and for that I have a modify button in which when I click on it, it should show me a modal where a message appears that the password has been modified and a button where you must click on accept and the session must be closed. This is my code:
protected void btnModificar_Click(object sender, EventArgs e)
{
Modificar();//funcion para modificar
//string para mostrar mi modal
string modalScript = @"<script type=""text/javascript"">
function openModal() {
$('#mymodal').modal('show');
}
</script>";
ScriptManager.RegisterStartupScript(this, GetType(), "bsChgPwdModal", modalScript, false);//
}
If you show me the modal but then later it "disappears" and I want it to stay there to click on the button and close the session. Thank you!! Greetings