private void loadComments() { DataTable dt = WorkloadItem.WorkItem_GetCommentList(workItemID: this.WorkItemID); if (dt != null && dt.Rows.Count > 0) { Comment_Count = dt.Rows.Count; } Page.ClientScript.RegisterArrayDeclaration("arrComments", JsonConvert.SerializeObject(dt, Newtonsoft.Json.Formatting.None)); }