sangeetha k

sangeetha k

  • NA
  • 207
  • 51.7k

this code gives me there is no datq at position 0 why is it

Sep 18 2017 7:20 AM
int product_id = Convert.ToInt32(txtPid.Text);
int category_id = Convert.ToInt32(txtCategoryid.Text);
DataSet dsOrderDetail = new DataSet();
dsOrderDetail = bal.getRecordDisplay(product_id, category_id);
txtPRodName.Text = dsOrderDetail.Tables[0].Rows[0]["product_name"].ToString();
txtdesc.Text = dsOrderDetail.Tables[0].Rows[1]["product_description"].ToString();
txtPrice.Text = dsOrderDetail.Tables[0].Rows[2]["price"].ToString();
txtavlblty.Text = dsOrderDetail.Tables[0].Rows[3]["Availability"].ToString();

Answers (2)