protected void bDelete_Click(object sender, EventArgs e) { int selID = Convert.ToInt32(Fn.GetCommandName(sender)); User_Fav.Delelte(selID, LoginInfo.UserID); Response.Redirect(Request.Url.ToString()); }
//添加多个 private string AddMore() { string sMsg = string.Empty; if (moreid.Length > 0) { sMsg = User_Fav.Add(LoginInfo.UserID, moreid, t, 100); } else { sMsg = "请先选择商品"; } return(sMsg); }
//添加单个 private string Add() { return(User_Fav.Add(LoginInfo.UserID, id, t, 100)); }