protected void cmbRiskType_DataBinding(object sender, EventArgs e)
 {
     try
     {
         DBAgent = new DataAccessProvider(DataAccessProvider.ParamType.ServerCredentials, ConfigurationManager.AppSettings["DBServerName"], ConfigurationManager.AppSettings["DBUserName"], ConfigurationManager.AppSettings["DBPassword"]);
         ConfigDataSource.DataSourceMode    = SqlDataSourceMode.DataSet;
         ConfigDataSource.SelectCommandType = SqlDataSourceCommandType.StoredProcedure;
         ConfigDataSource.SelectCommand     = "dbo.spGetAllConfigTypes";
         ConfigDataSource.ConnectionString  = DBAgent.GetConnectionString();
     }
     catch (Exception ex)
     {
         CommonHelpers.writeLogToFile("cmbRiskType_DataBinding: NewQuestionnaire.aspx", ex.Message);
     }
 }