protected void odsDepartmentMasterById_Inserted(object sender, ObjectDataSourceStatusEventArgs e) { MvDepartmentMaster.SetActiveView(MvDepartmentMaster.Views[0]); GvDepartmentMaster.DataBind(); if (e.Exception == null) { if (Equals(e.ReturnValue, true)) { ((IGRSS_Default)this.Master).ShowStatusMessage(Status_Messages.SaveSucess, Status_Messages.SaveSucessDescription, MessageType.Success); } else { ((IGRSS_Default)this.Master).ShowStatusMessage(Status_Messages.SaveFailed, "Record already Exists!", MessageType.Error); } } else { ((IGRSS_Default)this.Master).ShowStatusMessage(Status_Messages.SaveFailed, e.Exception.Message, MessageType.Error); } }
protected void btnCancel_Click1(object sender, EventArgs e) { MvVendorMaster.SetActiveView(MvVendorMaster.Views[0]); GvDepartmentMaster.DataBind(); }
protected void OdsVendorMaster_Updated(object sender, ObjectDataSourceStatusEventArgs e) { MvVendorMaster.SetActiveView(MvVendorMaster.Views[0]); GvDepartmentMaster.DataBind(); }