public static string GetEntryForm(int ShowId, int UserId) { String moduleSettings = ModuleConfig.GetSettings(); Data.Audit c = new Data.Audit(moduleSettings); DataSet ds = c.GetEntryForm(ShowId, UserId); var entryForm = ""; foreach(DataRow row in ds.Tables[0].Rows) { entryForm += string.Format("<h2>Entry Created on the {0:dd MMM yyyy}</h2><br>", row["CreatedDate"]); entryForm += row[0].ToString(); entryForm += "<hr />"; } return entryForm; }