Пример #1
0
 protected void BindStaticLists()
 {
     dt = cpr.GetStaticLists().Tables[0];
     if (dt.Rows.Count == 0)
     {
         lblErrorMessage.Text = "No static lists have been defined.";
     }
     else
     {
     }
     StaticListsGrid.DataSource = dt.DefaultView.ToTable();
     StaticListsGrid.DataBind();
 }
Пример #2
0
 protected void ShowStaticList_Click(object sender, ImageClickEventArgs e)
 {
     ClearPageMessages();
     ListPanelLabel.Text = "Static";
     dt = cpr.GetStaticLists().Tables[0];
     if (dt.Rows.Count == 0)
     {
         lblErrorMessage.Text = "Problem with static lists.";
     }
     else
     {
     }
     StaticListsGrid.DataSource = dt.DefaultView.ToTable();
     StaticListsGrid.DataBind();
     StaticListsGrid.Visible    = true;
     ExceptionListsGrid.Visible = false;
 }
Пример #3
0
 protected void StaticSearchButt_Click(object sender, ImageClickEventArgs e)
 {
     ClearPageMessages();
     ListPanelLabel.Text   = "Static";
     VMI.Checked           = false;
     Static.Checked        = true;
     Single.Checked        = false;
     Excel.Checked         = false;
     FilteredItems.Checked = false;
     dt = cpr.GetStaticLists(StaticListDDL.SelectedValue.ToString()).Tables[0];
     if (dt.Rows.Count == 0)
     {
         lblErrorMessage.Text = "Problem with static lists.";
     }
     else
     {
     }
     StaticListsGrid.DataSource = dt.DefaultView.ToTable();
     StaticListsGrid.DataBind();
     StaticListsGrid.Visible    = true;
     ExceptionListsGrid.Visible = false;
 }