protected void btnSave_Click(Object Sender, EventArgs e) { if (lblId.Text == "") { oForecast.AddAffected(intQuestion, intAffected, intResponse, Int32.Parse(ddlState.SelectedItem.Value)); } else { oForecast.UpdateAffected(Int32.Parse(lblId.Text), Int32.Parse(ddlState.SelectedItem.Value)); } Reload(); }