//----------CARGA--------------------- private void loadCat() { categorias = categoriaBusiness.listar(); foreach (Categoria x in categorias) { ListItem aux = new ListItem(x.name, x.id.ToString()); Categorybox.Items.Add(aux); } }
protected void Page_Load(object sender, EventArgs e) { if (!login()) { Response.Redirect("MainPage.aspx"); } action = 0; loadproducts(); categorias = categoriaBusiness.listar(); if (isdel()) { action = 1; } if (isstock()) { action = 2; } }
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { Session["PreviousPageUrl"] = Request.UrlReferrer.ToString(); } checklogged(); carrito = readchart(); categorias = categoriaBusiness.listar(); readproduct(); if (islogged == true) { isfavorite = checkFav(); } if (!IsPostBack) { TextCuantity.Text = "1"; } }
protected void Page_Load(object sender, EventArgs e) { // if (!IsPostBack) // page = 0; checkSearch(); categorias = categoriaBusiness.listar(); loadproducts(); if (!IsPostBack) { Additem(); } loadPage(); carrito = readChart(); if (page > productos.Count() / productperpage) { page = 0; } }
protected void Page_Load(object sender, EventArgs e) { if (!login()) { Response.Redirect("MainPage.aspx"); } categorias = categoriaBusiness.listar(); loadproducts(); if (!IsPostBack) { Additem(); } loadPage(); carrito = readChart(); if (page > productos.Count() / productperpage) { page = 0; } }
private void loadCategories() { categorias = CategoriaBusiness.listar(); }