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(); }
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; }
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; }