Skip to content

Working with DAL (Data Access Layers) and retreiving data

Me Humphries

Asked Dec 6, 2005, 10:07 AM EST1 answer
Share
LinkedInX
I am fairly new to .NET and a team meber has setup a DAL which we share, that simplifies stored procedures.  I am trying to retrieve the data out of my stored procedure and display it in my label.

Here is the call to set the procedure:
DAL.SQLParameters objaprams  =new GeorgiaPacific.AdminSys.DataAccess.DAL.SQLParameters (); 
objaprams.AddParameter("@lEmployeeId",strUserid,ParameterDirection.Input);  
DataTable objDataTable = objDal.GetDataTable("spAsMyRegistrations",objaprams);

Then I try to store the value returned from above in a label and I am getting stuck...
lblUserId.Text = ...

1 Answer

Know the answer? Post it. Somebody with the same question will find it here.

  • 0
    objDataTable.Rows[0][0]
    Then you get the value of the first column on the first row of your datatable
    0