protected void btnNew_Click(object sender, EventArgs e) { MvOfficeCommunication.SetActiveView(MvOfficeCommunication.Views[1]); FvOfficeCommunication.ChangeMode(FormViewMode.Insert); //((TextBox)FvOfficeCommunication.FindControl("txtCommunicationKeyIns")).Text=""; //((TextBox)FvOfficeCommunication.FindControl("txtDescriptionIns")).Text = ""; }
protected void GvOfficeCommunication_SelectedIndexChanged(object sender, EventArgs e) { fldOfficeId.Value = GvOfficeCommunication.SelectedDataKey.Values["OfficeId"].ToString(); fldCommunicationKey.Value = GvOfficeCommunication.SelectedDataKey.Values["CommunicationKey"].ToString(); MvOfficeCommunication.SetActiveView(MvOfficeCommunication.Views[1]); FvOfficeCommunication.ChangeMode(FormViewMode.Edit); }