Ejemplo n.º 1
0
        protected void BtnLogin_Click(object sender, EventArgs e)
        {
            try
            {
                String StrUsuario = username.Value;
                String StrPass    = password.Value;

                //  byte tipo = byte.Parse(TypeDropDownList.SelectedValue);

                lg.VerificarLogin(StrPass, StrUsuario);

                if (lg.UsuarioCliente(StrUsuario))
                {
                    Session["Party"] = StrUsuario;

                    Response.Redirect("/ModuloCliente/PrincipalLineaPedido.aspx?nombre= &correo=" + StrUsuario + "&id= ", false);
                }
            }
            catch (ExcepcionUsuarioIncorrecto ex)
            {
                // String script = string.Format("MensajeError('{0}')", ex.Message);
                //ClientScript.RegisterStartupScript(this.GetType(), "key", script, true);
                divMsj.Attributes.Add("style", "display:inline");
                msj.Text = ex.Message;
            }
        }