protected void txtModifiedAt_DataBinding(object sender, EventArgs e) { TextBox txt = (TextBox)FvReadOnly.FindControl("txtModifiedAt"); if (txt.Text != "") { txt.Text = txt.Text.Remove(10); } }
protected void txtServiceDateItm_DataBinding(object sender, EventArgs e) { TextBox txt = (TextBox)FvReadOnly.FindControl("txtServiceDateItm"); if (txt.Text != "") { txt.Text = txt.Text.Remove(10); } }
protected void gvServiceNo_SelectedIndexChanged(object sender, EventArgs e) { switch ((string)Session["Mode"]) { case "Verify": mvService.SetActiveView(mvService.Views[1]); fvService.ChangeMode(FormViewMode.Edit); break; case "ReadOnly": mvService.SetActiveView(mvService.Views[2]); FvReadOnly.ChangeMode(FormViewMode.ReadOnly); break; } }