protected void SubmitButtom_Click(object sender, EventArgs e) { int userId = Int32.Parse(Session["UserID"].ToString()); string keywords = this.Keywords.Text.Trim().Replace("%", ""); if (keywords == "") { Utility.Alert(this, "关键字不能为空!"); return; } DataTable dt = ItemAccess.GetItemListByKeywords(keywords, userId); SearchItemList.DataSource = dt; SearchItemList.DataBind(); UpdateTotalPrice(dt); }