Foros > C# (Sharp): LOGIN CON WINFORMS CONTRA BASE SQL 2000

  1. dittop

    Mensajes [1] - Enviado el Miércoles 24 de Octubre de 2007 a las 14:38hs

    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.....

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

    Si responden aqui increible, sino por favor a mi correo: [email protected]

    Algo del codigo del Form1:


    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);
    }

    }
    }
    }


responder

Para poder responder a este tema tenes que ingresar. Si no tenes una cuenta podes registrarse gratis..

publicidad