public void Buttonr1_del_Click(Object sender, System.EventArgs e) { int wid2; string str1; try { classE1_1.Open(); //classE1_1.setGlobalVar(); // sets glngwid etc. //str1 = MyUtilities.clean(getvalue("DropDownList2"); int x3; x3 = Convert.ToInt32(DropDownList2.SelectedItem.Value); /// use as wid!!! //today test if Wid2 = -1 or = 0 classE1_1.DeleteWhatIfAudit(x3); classE1_1.model_modified = -1; classE1_1.saveModel_modified(); updatingdatasource(); classE1_1.Close(); } catch (Exception ex) { logFiles.ErrorLog(ex); Master.ShowErrorMessage("MPX internal error has occured."); } }