private void BindValues() { DataTable dt = Ldap.SyncLogGetList(LogId); if (dt.Rows.Count > 0) { DataRow dr = dt.Rows[0]; lblTitle.Text = String.Format("<a href='{2}?SetId={1}'>{0}</a>", dr["Title"].ToString(), dr["LdapId"].ToString(), ResolveClientUrl("~/Admin/LdapSettingsView.aspx")); lblSynchDate.Text = ((DateTime)dr["dt"]).ToString("g"); } BindDG(); }