private void BindData() { try { txtvalue.Text = ""; SettingProvider sp = new SettingProvider(); GoogleAnalyticsInfo objGA = new GoogleAnalyticsInfo(); objGA = sp.GetGoogleAnalyticsByPortalID(GetPortalID); if (objGA != null && objGA.GoogleJSCode != null) { txtvalue.Text = objGA.GoogleJSCode; chkIsActive.Checked = objGA.IsActive; } } catch (Exception ex) { ProcessException(ex); } }