コード例 #1
0
ファイル: Inicio.aspx.cs プロジェクト: Orbp1403/EDD_201220165
 protected void Button9_Click(object sender, EventArgs e)
 {
     ServiceReference1.WebServiceProyectoSoapClient referencia = new ServiceReference1.WebServiceProyectoSoapClient();
     if (this.TextBox1.Text.Length != 0)
     {
         if (!referencia.BuscarUsuario(this.TextBox1.Text))
         {
             this.TextBox1.Enabled = false;
             string datosusuario = referencia.Devolverusuario(this.TextBox1.Text);
             if (datosusuario.CompareTo("") != 0)
             {
                 string[] datos = datosusuario.Split(',');
                 txtNick.Text          = datos[0];
                 txtpass.Text          = datos[1];
                 txtcorreo.Text        = datos[2];
                 this.button10.Visible = this.Label2.Visible = this.Label3.Visible = this.Label4.Visible = txtcorreo.Visible = txtNick.Visible = txtpass.Visible = true;
             }
         }
         else
         {
             ScriptManager.RegisterStartupScript(this, this.GetType(), "alertIns", "alert('El usuario no existe');", true);
             this.TextBox1.Enabled = true;
         }
     }
 }