• Viernes 17 de Mayo de 2024, 07:28

Autor Tema:  Re: Problemas Con Login Con Winforms En Base Sql 2000  (Leído 944 veces)

edumaxperez

  • Nuevo Miembro
  • *
  • Mensajes: 1
    • Ver Perfil
Re: Problemas Con Login Con Winforms En Base Sql 2000
« en: Miércoles 24 de Octubre de 2007, 19:44 »
0
Tengo que hacer un proyecto de Contabilidad... un Rol de Pagos en C#, ya tengo mas o menos diagramado todo pero tengo un problema con el primer paso.... La autenticacion....
He intentado de todo y realmente el tiempo se termina... Si alguien tiene documentacion sobre TableAdapter y cosas por el estilo ayudenme...... Ahi les dejo el link con el archivo en rapidshare (83KB) esta sin la base pero es bastante ayuda como para poder tener una idea.....

hxxp://rapidshare.com/files/64880719/Login.rar.html

Si responden aqui increible, sino por favor a mi correo: broken_pectrum@hotmail.com

Algo del codigo del Form1:

<pre>
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace Login
{
   
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            lOGINTableAdapter.Fill(pruebaDataSet1.LOGIN  , uSUARIOTextBox.Text ,
                 cLAVETextBox.Text );

            DataColumn  x = pruebaDataSet1.LOGIN.USUARIOColumn;//.Equals(uSUARIOTextBox.Text  );
            DataColumn  y = pruebaDataSet1.LOGIN.CLAVEColumn;//.Equals(cLAVETextBox.Text  );



           

            if (x.Equals( uSUARIOTextBox.Text ) == true)
            {
                if (y.Equals(cLAVETextBox.Text) == true)
                    MessageBox.Show("Datos Correctos");
            }
            else
            {
                MessageBox.Show("Datos Incorrectos");
            }

           
            /*if (pruebaDataSet1.LOGIN.Count ==1)
            {

            }
             else
             {
                MessageBox.Show("Usuario Incorrecto");
            }
            */
        }
     
        private void
             tabla1BindingNavigatorSaveItem_Click(object sender,
             EventArgs e)
        {
            this.Validate();
            this.lOGINBindingSource.EndEdit();
            this.lOGINTableAdapter.GetData(uSUARIOTextBox.Text,cLAVETextBox.Text);
        }

        private void Form1_Load(object sender, EventArgs e)
        {

        }

          private void
               fillToolStripButton_Click(object sender, EventArgs e)
          {
              try
              {
                  this.lOGINTableAdapter.Fill(this.pruebaDataSet1.LOGIN,uSUARIOTextBox.Text,cLAVETextBox.Text );

              }
              catch (System.Exception ex)
              {
                  System.Windows.Forms.MessageBox.Show(ex.Message);
              }

          }
    }
}</pre>
El mensaje contiene 1 archivo adjunto. Debes ingresar o registrarte para poder verlo y descargarlo.