//五级查询 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(); } }
////确认查询条件 //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(); } }
protected void Button1_Click(object sender, EventArgs e) { string card_off = DropDownList_off.SelectedItem.Text; string card_occupation = DropDownList3.SelectedItem.Text; int card_cost = int.Parse(DropDownList_cost.SelectedItem.Text); if (CardBll.selectcard(card_off, card_occupation, card_cost) != null) { ListView2.DataSource = CardBll.selectcard(card_off, card_occupation, card_cost); ListView2.DataBind(); } }