protected void Page_Load(object sender, EventArgs e)
        {
            Browse.Attributes.Add("onclick", "document.getElementById('" + ImageUploader.ClientID + "').click();");
            productList = menuService.GetAllProductsInMenu();
            productRepeater.DataSource = productList;
            productRepeater.DataBind();
            if (Session["IMAGE"] == null)
            {
                uploadImageUser.Attributes.Add("data-src", "images/placeholder.gif");
            }
            else
            {
                fileToSave = (HttpPostedFile)Session["IMAGE"];
            }

            count_Notification             = nBusiness.countUnreadNotification();
            list_Notification              = nBusiness.NotificationsPopup();
            popup_Notifications.DataSource = list_Notification;
            popup_Notifications.DataBind();
        }
Ejemplo n.º 2
0
 protected void Page_Load(object sender, EventArgs e)
 {
     productList = menuService.GetAllProductsInMenu();
     productRepeater.DataSource = productList;
     productRepeater.DataBind();
 }