Bineesh  VP

Bineesh VP

  • NA
  • 994
  • 447.6k

ASP.NET ERROR

Aug 23 2013 10:55 AM
Sir, I am hetting an error during the save function:-

Please take a look at the following pages:-



You can see Two values in comboBox. But only the first value is storing in database. If I choose "37" , the value in databse will be "36". look at the saved data in GridView:-



Why this happening?.

Here I posting the btnSave_Click Event:-

protected void btnSave_Click(object sender, EventArgs e)
    {
        divisionSP spDiv = new divisionSP();
        divisionInfo InfoDiv = new divisionInfo();
        InfoDiv.divisionName = txtDivision.Text;
        InfoDiv.classId = decimal.Parse(cmbClassName.SelectedValue.ToString());
        spDiv.DivisionAdd(InfoDiv);
        mvDivision.ActiveViewIndex = 1;
        gridFill();
    }

Please help me in this topic.

Answers (3)