c# - Open Modal when access is incorrect - Asp.net -


how can open bootstrap modal when usuárou or password incorrect ?

use following code

 if(login.logarusuario(txtuser.text, txtsenha.text))          {             //cria um cookie lado servidor             httpcookie cookie = new httpcookie("estado", "conectado");              //define validade cookie (10 dias partir de hoje)             cookie.expires = datetime.now.addmonths(12);              //envia o cookie para o cliente             response.cookies.set(cookie);              //redireciona para pagina inicial             response.redirect("admin.aspx");         }         else         {             //modal open here         } 


Comments

Popular posts from this blog

html - Outlook 2010 Anchor (url/address/link) -

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -

Getting gateway time-out Rails app with Nginx + Puma running on Digital Ocean -