Ejemplo n.º 1
0
    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);
    }
Ejemplo n.º 2
0
    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");
        }
    }