protected void PopulateNewRecordPanel() { List <OptionItem> options = new List <OptionItem>(); var available_ids = db.SP_RMS_Get_Site_DDs(site.site_id, ""); if (available_ids.Count() == 0) { ltlTopNote.Text = "There are no available time-series IDs registered in Aquarius for this site, so the record must be non-time-series. If this is correct," + " please check the box below to continue creating a non-time-series record."; ltlBottomNote.Text = "<b>Note:</b> If you are trying to create a time-series record but do not see the ID, you must register the daily value ID in nw_edit," + " and manually push the data to NWISWeb. Your registered ID will be available for creating a record within an hour."; options.Add(new OptionItem() { option = "nonts_noid", description = "Non-Time-Series Record" }); rcblOptions.DataSource = options; rcblOptions.DataBind(); } else { ltlTopNote.Text = "Choose a classification for this new record:"; ltlBottomNote.Visible = false; options.Add(new OptionItem() { option = "ts_id", description = "Time-Series Record" }); options.Add(new OptionItem() { option = "nonts_noid", description = "Non-Time-Series Record" }); rcblOptions.DataSource = options; rcblOptions.DataBind(); } }