protected void Page_Load(object sender, EventArgs e) { try { if (!Page.IsPostBack) { chkEnabled.Checked = ModuleSettings.GetValueOrDefault("Enabled", false); txtInstrumentationKey.Text = ModuleSettings.GetValueOrDefault("InstrumentationKey", string.Empty); } txtInstrumentationKey.Enabled = chkEnabled.Checked; rqInstrumentationKey.Enabled = txtInstrumentationKey.Enabled; } catch (Exception ex) { Exceptions.ProcessModuleLoadException(this, ex); } }