//点击“确定”进行相应的搜索 protected void search_ServerClick(object sender, EventArgs e) { string point_foodname = this.ddlSelectFood.SelectedValue.ToString(); m.Foodname = point_foodname; dt = menu.point_searchMenu(m); }
//增加食物1 protected void Add_FoodClick1(object sender, EventArgs e) { m.Foodname = this.Label1.Text; dt_menu = menu.point_searchMenu(m); no = int.Parse(dt_menu.Rows[0]["foodno"].ToString()); add(no); }