2 commented lines give errors..plz help me to correct it...im a biginner...
if (reader.Read())
{
BE.InterestRate objir = new BE.InterestRate();
//objir.percentage = reader.GetFloat(Convert.ToString("percentage"));
//objir.percentage =float.Parse(Convert.ToString(reader.GetOrdinal("percentage")));
objir.Interest_Id = reader.GetInt32(reader.GetOrdinal("Interest_Id"));
objIR.Add(objir);
}