protected void Unnamed_Click(object sender, EventArgs e) { LinkButton _lnk = (LinkButton)sender; DataTable _dttemp = csql.getIncidentReport_Details("SmartConcepcion", Convert.ToInt64(_lnk.ToolTip)); header.InnerText = "Update Incident"; txtTitle.Text = _dttemp.Rows[0]["title"].ToString(); txtLocation.Text = _dttemp.Rows[0]["incident_location"].ToString(); txtIncidentDate.Text = Convert.ToDateTime(_dttemp.Rows[0]["incidentdate"].ToString()).ToString("yyyy-MM-ddTHH:mm:ss"); //.ToLocalTime().ToString("yyyy-MM-ddTHH:mm:ss"); txtConfrontation.Text = Convert.ToDateTime(_dttemp.Rows[0]["confrontation_date"].ToString()).ToString("yyyy-MM-ddTHH:mm:ss"); //ToLocalTime().ToString("yyyy-MM-ddTHH:mm:ss"); txtAccused.Text = _dttemp.Rows[0]["accusedName"].ToString(); txtComplainant.Text = _dttemp.Rows[0]["complainantName"].ToString(); txtDetails.Text = _dttemp.Rows[0]["incident_details"].ToString(); txtRemarks.Text = _dttemp.Rows[0]["remarks"].ToString(); lblPrevDate.Text = "Previous dates: " + _dttemp.Rows[0]["prevdate"].ToString(); if (_dttemp.Rows[0]["complainantID"].ToString() != "") { p_ComplainantID = Convert.ToInt64(_dttemp.Rows[0]["complainantID"].ToString()); } else { p_ComplainantID = null; } if (_dttemp.Rows[0]["accusedID"].ToString() != "") { p_AccusedID = Convert.ToInt64(_dttemp.Rows[0]["accusedID"].ToString()); } else { p_AccusedID = null; } p_IncidentID = Convert.ToInt64(_dttemp.Rows[0]["ID"].ToString()); upIncidentInfo.Update(); }