passa dataset through class

  • Thread starter Thread starter Gian Paolo
  • Start date Start date
G

Gian Paolo

hi all
i have 2 C# 2.0 classes the result i want is that i pass a value( txt)
from the class1 to the class2 the class2 build the dataset with this
parameter and return to class1 the dataset.
The problem is that i can't find a correct syntax to do this someone can
help me please?

regards to all
Gian Paolo
 
ok i made this but now i don't know how to retrive the values contained in
the tables of the ds dstaset someone han help?????

using System;

using System.Collections.Generic;

using System.ComponentModel;

using System.Data;

using System.Drawing;

using System.Text;

using System.Windows.Forms;

using Interventi.Business;





namespace Interventi.Client.Forms

{

public partial class frmLogin : Form

{

public frmLogin()

{

InitializeComponent();

}

private void btnEsci_Click(object sender, EventArgs e)

{

clsStart.blnLoginOK = false;

Application.Exit();

}

private void btnLogin_Click(object sender, EventArgs e)

{

string a;


DataSet ds= new DataSet();


ds = clsLogin.VerificaPassword("g","g");


}

}

}



using System;

using System.Collections.Generic;

using System.Text;

using System.Data;

using Interventi.Data;

using Interventi.Data.dsInterventiTableAdapters;

namespace Interventi.Business

{

public class clsLogin

{





public static DataSet VerificaPassword(string strUtente, string strPassword)

{


dsInterventi dsInterventi = new dsInterventi();

UTENTITableAdapter taUtenti = new UTENTITableAdapter();

taUtenti.FillBy_UTCOD(dsInterventi.UTENTI, strUtente);

//DataTableReader dtrUtenti = new DataTableReader(dsInterventi.UTENTI);

return dsInterventi;


}









}


}
 
Back
Top