/// <summary> /// /// </summary> /// <param name="source"></param> /// <param name="e"></param> protected void rptList_ItemCommand(object source, RepeaterCommandEventArgs e) { string cName = e.CommandName; string cArgument = e.CommandArgument.ToString(); HiddenField hidId = e.Item.FindControl("hidId") as HiddenField; int id = MyCommFun.Str2Int(hidId.Value); if (cName == "recommend") { string v = "1"; if (cArgument.ToLower() == "true") { v = "0"; } else { v = "1"; } gbll.UpdateField(id, "isRecommend=" + v); } Response.Redirect(Utils.CombUrlTxt("business_list.aspx", "keywords={0}", this.keywords)); }