protected void btnNew_Click(object sender, EventArgs e) { ((IGRSS_Default)this.Master).HideStatusMessage(); MvFeeMaster.SetActiveView(MvFeeMaster.Views[1]); FvFeeMaster.ChangeMode(FormViewMode.Insert); ((TextBox)FvFeeMaster.FindControl("txtDescriptionIns")).Text = ""; ((TextBox)FvFeeMaster.FindControl("txtNameIns")).Text = ""; ((TextBox)FvFeeMaster.FindControl("txtAmountIns")).Text = ""; }
protected void odsFeeMasterById_Updated(object sender, ObjectDataSourceStatusEventArgs e) { MvFeeMaster.SetActiveView(MvFeeMaster.Views[0]); GvFeeMaster.SelectedIndex = -1; GvFeeMaster.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 GvFeeMaster_SelectedIndexChanged(object sender, EventArgs e) { MvFeeMaster.SetActiveView(MvFeeMaster.Views[1]); FvFeeMaster.ChangeMode(FormViewMode.Edit); }
protected void btnCancel_Click1(object sender, EventArgs e) { MvFeeMaster.SetActiveView(MvFeeMaster.Views[0]); GvFeeMaster.DataBind(); }