protected void btnSaveImage_Click(object sender, EventArgs e) { var productManager = new ProductManager(this); if (fupProductImage.FileName != null) { productManager.InsertProductImage(Company, new ProductImage { ProductId = productId, Description = txtDescription.Text }, fupProductImage.PostedFile); lstProductImages.DataBind(); txtDescription.Text = String.Empty; } }