private void BindData()
        {
            // lets prepopulate starting date to 7 days ago
            wf_StartingFrom.Text = DateTime.Now.AddDays(-7).ToShortDateString();



            wf_Contacts.DataSource = ContactFormDao.GetLast100Contacts(GetFormTypes());
            wf_Contacts.DataBind();

            wf_PreviewDesc.Text    = "Viewing Last 100 Contacts";
            wf_PreviewDesc.Visible = true;
        }
Пример #2
0
    private void BindData()
    {
        // Populate Business Area drop down. . .
        wf_BusinessTypes.DataSource = ContactFormDao.GetContactFormBusinessAreas();
        wf_BusinessTypes.DataBind();
        wf_BusinessTypes.AutoPostBack = true;
        wf_BusinessTypes.Items.Insert(0, ALLAREAS_DESC);

        // Populate Form Types so that admin can filter down what site/form
        ResetFormTypes(ContactFormDao.GetContactFormTypes());

        // lets prepopulate starting date to 7 days ago
        wf_StartingFrom.Text = DateTime.Now.AddDays(-7).ToShortDateString();

        wf_Contacts.DataSource = ContactFormDao.GetLast100Contacts();
        wf_Contacts.DataBind();

        wf_PreviewDesc.Text    = "Viewing Last 100 Contacts";
        wf_PreviewDesc.Visible = true;
    }