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.