protected void gdComplain_SelectedIndexChanged(object sender, EventArgs e) { fldComplainId.Value = Convert.ToString(((GridView)sender).SelectedDataKey.Values["ComplainId"]); mvAssignOfficer.SetActiveView(mvAssignOfficer.Views[1]); FvInvestigationdetail.ChangeMode(FormViewMode.ReadOnly); }
protected void txtComplaintDateUps_DataBinding(object sender, EventArgs e) { TextBox txt = (TextBox)FvInvestigationdetail.FindControl("txtComplaintDateUps"); if (txt.Text != "") { DateTime s = Convert.ToDateTime(txt.Text); txt.Text = s.ToString("dd/MM/yyyy"); } }