protected void btnSaveAndAnother_Click(object sender, EventArgs e) { bool isSuccessful = SaveData(); if (isSuccessful) { // Get another new instance for editing InstanceNewingEventArgs arg = new InstanceNewingEventArgs(CurrentSubject.SubjectType); if (InstanceNewing != null) { InstanceNewing(this, arg); } if (CurrentInstance != null) { base.LoadInstanceData(); } } }
protected void ucIEdit_InstanceNewing(object sender, InstanceNewingEventArgs e) { RetrieveData(); }