Пример #1
0
        ////确认查询条件
        //protected void Button_Click(object sender, EventArgs e)
        //{
        //    if (txtName.Text != "卡牌")
        //    {
        //        string card_name = txtName.Text.Trim();
        //        CardView.DataSource = CardBll.namecard(card_name);
        //        CardView.DataBind();
        //    }
        //    else
        //    {
        //        if (DropDownList_cost.SelectedIndex != 0)
        //        {
        //            CardView.DataSource = CardBll.selectcard(DropDownList_off.SelectedItem.Text);
        //            CardView.DataBind();
        //            if (DropDownList_occ.SelectedIndex != 0)
        //            {
        //                CardView.DataSource = CardBll.selectcard(DropDownList_off.SelectedItem.Text, DropDownList_occ.SelectedItem.Text);
        //                CardView.DataBind();
        //                if (DropDownList_cost.SelectedIndex != 0)
        //                {
        //                    CardView.DataSource = CardBll.selectcard(DropDownList_off.SelectedItem.Text, DropDownList_occ.SelectedItem.Text, int.Parse(DropDownList_cost.SelectedItem.Text));
        //                    CardView.DataBind();
        //                    if (DropDownList_Race.SelectedIndex != 0)
        //                    {
        //                        CardView.DataSource = CardBll.selectcard(DropDownList_off.SelectedItem.Text, DropDownList_occ.SelectedItem.Text, int.Parse(DropDownList_cost.SelectedItem.Text), DropDownList_Race.SelectedItem.Text);
        //                        CardView.DataBind();
        //                        if (DropDownList_rd.SelectedIndex != 0)
        //                        {
        //                            CardView.DataSource = CardBll.selectcard(DropDownList_off.SelectedItem.Text, DropDownList_occ.SelectedItem.Text, int.Parse(DropDownList_cost.SelectedItem.Text), DropDownList_Race.SelectedItem.Text, DropDownList_rd.SelectedItem.Text);
        //                            CardView.DataBind();
        //                        }
        //                    }
        //                }
        //            }
        //        }
        //    }

        //}

        //protected void moreselect1_Click(object sender, EventArgs e)
        //{
        //    Panel1.Visible = true;
        //}

        //一级查询
        protected void Button1_Click(object sender, EventArgs e)
        {
            if (DropDownList_off.SelectedIndex != 0)
            {
                CardView.DataSource = CardBll.selectcard(DropDownList_off.SelectedItem.Text);
                CardView.DataBind();
            }
        }
Пример #2
0
 //五级查询
 protected void Button5_Click(object sender, EventArgs e)
 {
     if (DropDownList_rd.SelectedIndex != 0)
     {
         CardView.DataSource = CardBll.selectcard(DropDownList_off.SelectedItem.Text, DropDownList_occ.SelectedItem.Text, int.Parse(DropDownList_cost.SelectedItem.Text), DropDownList_Race.SelectedItem.Text, DropDownList_rd.SelectedItem.Text);
         CardView.DataBind();
     }
 }
Пример #3
0
 protected void Button_Click(object sender, EventArgs e)
 {
     if (txtName.Text != "卡牌")
     {
         string card_name = txtName.Text.Trim();
         CardView.DataSource = CardBll.namecard(card_name);
         CardView.DataBind();
     }
 }
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!Page.IsPostBack)
            {
                var result  = db.Products1.ToList();
                var result1 = new List <string>();

                CardView.DataSource = result;
                CardView.DataBind();
                //   DataList1.DataSource = result;
                //  DataList1.DataBind();
            }
        }
Пример #5
0
 //绑定卡牌数据
 protected void Bindcard()
 {
     CardView.DataSource = CardBll.allcard();
     CardView.DataBind();
 }