protected int Save() { if (intID == 0) { // oForecast.DeleteAnswer(intForecast, intPlatform); intID = oForecast.AddAnswer(intForecast, intPlatform, 0, intProfile); } int intVendor = Int32.Parse(lblVendor.Text); if (intVendor == 0) { intVendor = oForecast.AddAnswerVendor(Int32.Parse(ddlPlatforms.SelectedItem.Value), Int32.Parse(ddlTypes.SelectedItem.Value), txtMake.Text, txtModel.Text, txtWidth.Text, txtHeight.Text, txtAmp.Text, txtOther.Text); } else { oForecast.UpdateAnswerVendor(intVendor, Int32.Parse(ddlPlatforms.SelectedItem.Value), Int32.Parse(ddlTypes.SelectedItem.Value), txtMake.Text, txtModel.Text, txtWidth.Text, txtHeight.Text, txtAmp.Text, txtOther.Text); } oForecast.UpdateAnswerVendor(intID, intVendor); // Check to see if step is done int intDone = 0; if (txtMake.Text.Trim() != "" && txtModel.Text.Trim() != "" && txtWidth.Text.Trim() != "" && txtHeight.Text.Trim() != "" && txtAmp.Text.Trim() != "") { intDone = 1; } return(intDone); }