protected void ItemCommand(Object Sender, RepeaterCommandEventArgs e) { string[] split = ((string)e.CommandArgument).Split(','); string productID = split[0]; bool in_whishlist = bool.Parse(split[1]); if (in_whishlist) { Handler.RemoveProductFromWhishList(productID); Product searchProduct = GetProductFromSearchResults(productID); searchProduct.in_whishlist = false; PreSelectedLink.InnerText = "Lista de artículos pre-seleccionados (" + Handler.WhishList(Session["Category"].ToString()).Count + ")"; } else { MeliService ms = MeliService.GetService(); ItemObject product = ms.GetProduct(productID); bool pertenece = Handler.IsProductInWishList(productID); if (!pertenece) { Handler.AddProductToWhishList(product); Product searchProduct = GetProductFromSearchResults(productID); searchProduct.in_whishlist = true; } } PreSelectedLink.InnerText = "Lista de artículos pre-seleccionados (" + Handler.WhishList(Session["Category"].ToString()).Count + ")"; BindRepeater(); }
public static MeliService GetService() { if (meliService == null) { meliService = new MeliService(); } return(meliService); }
protected override void OnLoad(EventArgs e) { base.OnLoad(e); ms = MeliService.GetService(); sites = ms.GetSites(); if (!IsPostBack) { populateDropDownListSites(); } }
protected void Page_Load(object sender, EventArgs e) { ms = MeliService.GetService(); string product = Request ["productID"].ToString(); this.Item = ms.GetProduct(product); this.customersRepeater.DataSource = Item.pictures; this.customersRepeater.DataBind(); }
protected override void OnLoad(EventArgs e) { base.OnLoad (e); ms = MeliService.GetService(); sites = ms.GetSites(); if (!IsPostBack) { populateDropDownListSites(); } }
protected override void OnLoad(EventArgs e) { base.OnLoad(e); ms = MeliService.GetService(); string sessionSearch = (string)Session["Category"]; if (string.IsNullOrEmpty(sessionSearch)) { Response.Redirect("/Home.aspx"); } }
protected void Page_Load(object sender, EventArgs e) { ms = MeliService.GetService (); string product = Request ["productID"].ToString (); this.Item = ms.GetProduct(product); this.customersRepeater.DataSource = Item.pictures; this.customersRepeater.DataBind(); }
public static MeliService GetService() { if (meliService == null) { meliService = new MeliService(); string secret_key = "kVDEhEwtNkByjnONdLvfMlC90tno1LsR"; long appID = 4704572964736151; meliService.service = new Meli(appID, secret_key); } return(meliService); }
protected override void OnLoad(EventArgs e) { base.OnLoad(e); string url = Request.Url.AbsoluteUri; string param = Request["code"]; if (param != null) { autentication = param; clientID = param.Split('-')[2]; } ms = MeliService.GetService(); }
//public string secret_key = "kVDEhEwtNkByjnONdLvfMlC90tno1LsR"; //public long appID = 4704572964736151; protected void Page_Load(object sender, EventArgs e) { ms = MeliService.GetService(); }
public static MeliService GetService() { if (meliService == null) { meliService = new MeliService(); } return meliService; }