//----------MODIFICAR PRODUCTO

        private void loadProduct(string code)
        {
            producto          = productoBusiness.buscarid(code);
            TextCode.Text     = producto.code;
            TextCode.ReadOnly = true;
            TextName.Text     = producto.name;
            TextDesc.Text     = producto.desc;
            BrandSelector.Items.FindByText(producto.marca.name).Selected = true;
            TextMargin.Text = producto.margin.ToString();
            for (int x = 0; x < Categorybox.Items.Count; x++)
            {
                Categoria aux = categoriaBusiness.getFromName(Categorybox.Items[x].Text);
                if (categoriaBusiness.checkItemInCategory(aux.id, producto.code))
                {
                    Categorybox.Items[x].Selected = true;
                }
            }
            Session["oldimagepath"] = producto.urlimagen;
        }