Пример #1
0
    //搜索按钮
    protected void SubmitButtom_Click(object sender, EventArgs e)
    {
        int userId = Convert.ToInt32(Session["UserID"]);

        string keywords = this.Keywords.Text.Trim().Replace("%", "");

        if (keywords == "")
        {
            Utility.Alert(this, "关键字不能为空!");
            return;
        }

        ItemTableBLL bll   = new ItemTableBLL();
        DataTable    lists = bll.GetItemListByKeywords(userId, keywords);

        SearchItemList.DataSource = lists;
        SearchItemList.DataBind();

        //更新总价
        UpdateTotalPrice(lists);
    }
Пример #2
0
    //搜索按钮
    protected void SubmitButtom_Click(object sender, EventArgs e)
    {
        int userId = Convert.ToInt32(Session["UserID"]);

        string keywords = this.Keywords.Text.Trim().Replace("%", "");
        if (keywords == "")
        {
            Utility.Alert(this, "关键字不能为空!");
            return;
        }

        ItemTableBLL bll = new ItemTableBLL();
        DataTable lists = bll.GetItemListByKeywords(userId, keywords);
        SearchItemList.DataSource = lists;
        SearchItemList.DataBind();

        //更新总价
        UpdateTotalPrice(lists);
    }