Hi All,
I have the following code
------------------------------------------------
Business.Prod prod = new Business.Prod();
SqlDataReader Product = prod.GetProducts();
while (prod.Read())
{
Response.Write(BuildProduct("PASS THE ROW");
}
private string BuildProduct("ACCEPT ROW")
{
//"READ COLUMNS IN ROW"
}
------------------------------------------
Basically, I want to read every row and pass it to the BuildProduct method.
I am not sure how to pass the row, accept it and read the columns.
Please help.
Thanks in Advance.