protected void GetCommunicationMethods() { try { List <ClsCommunicationMethod> qCommMeth = SrvCommunicationMethod.GetCommunicationMethods(); comboxCommunicationMethod.DataSource = qCommMeth; comboxCommunicationMethod.DataTextField = "CommunicationMethod"; comboxCommunicationMethod.DataValueField = "idCommunicationMethod"; comboxCommunicationMethod.DataBind(); } catch (Exception ex) { long lnewID = 0; clsExceptionLogging error = new clsExceptionLogging() { Method = GetCurrentMethod(), ExceptionMsg = ex.Message.ToString(), ExceptionType = ex.GetType().Name.ToString(), ExceptionURL = context.Current.Request.Url.ToString(), ExceptionSource = ex.StackTrace.ToString(), CreatedOn = DateTime.Now, CreatedBy = Session["userName"].ToString() }; SrvExceptionLogging.Insert(error, out lnewID); } if (bool.Parse(ConfigurationManager.AppSettings["debug"])) { txtBoxMultiDebug2.Text += "GetCommunicationMethods- " + RadPanelBar1.Items[0].Text + ": " + comboxCommunicationMethod.SelectedText.ToString() + ": " + comboxCommunicationMethod.SelectedValue.ToString() + "\r\n"; } }
protected void GetCommunicationMethods() { try { List <ClsCommunicationMethod> qCommMeth = SrvCommunicationMethod.GetCommunicationMethods(); comboxCommunicationMethod.DataSource = qCommMeth; comboxCommunicationMethod.DataTextField = "CommunicationMethod"; comboxCommunicationMethod.DataValueField = "idCommunicationMethod"; comboxCommunicationMethod.DataBind(); } catch (Exception ex) { long lnewID = 0; clsExceptionLogging error = new clsExceptionLogging() { Method = GetCurrentMethod(), ExceptionMsg = ex.Message.ToString(), ExceptionType = ex.GetType().Name.ToString(), ExceptionURL = context.Current.Request.Url.ToString(), ExceptionSource = ex.StackTrace.ToString(), CreatedOn = DateTime.Now, CreatedBy = Session["userName"].ToString() }; SrvExceptionLogging.Insert(error, out lnewID); } }