protected void Page_Load(object sender, EventArgs e) { Page.Title = "View Product Type Page"; if (Session["UserName"] == null) { Response.Redirect("../HomePage.aspx"); } _allProduct.DataSource = RepositoryProductType.GetAll(); _allProduct.DataBind(); }
protected void Page_Load(object sender, EventArgs e) { Page.Title = "Insert Product Page"; if (Session["UserName"] == null) { Response.Redirect("../HomePage.aspx"); } _allproducttype.DataSource = RepositoryProductType.GetAll(); _allproducttype.DataBind(); tableColor.Style.Add(HtmlTextWriterStyle.BackgroundColor, "Red"); }
private void refresh() { _allproduct.DataSource = RepositoryProductType.GetAll(); _allproduct.DataBind(); }