protected void btnEdit_Command(object sender, CommandEventArgs e) { editid.Value = e.CommandArgument.ToString(); DataTable dt = ObjDoc.GetDocumentMaster_By_DocumentId(strCompId, editid.Value); if (dt.Rows.Count > 0) { try { txtDocumentName.Text = dt.Rows[0]["Document_Name"].ToString(); TxtDocumentNameLocal.Text = dt.Rows[0]["Document_Name_L"].ToString(); } catch { } btnNew_Click(null, null); btnNew.Text = Resources.Attendance.Edit; } }