protected void Page_Load(object sender, EventArgs e) { Page.Title = "View Product Page"; if (Session["UserName"] == null) { Response.Redirect("../HomePage.aspx"); } _allproduct.DataSource = RepositoryProduct.GetFiveProduct(); _allproduct.DataBind(); }
protected void Page_Load(object sender, EventArgs e) { Page.Title = "View Product Page"; _allproduct.DataSource = RepositoryProduct.GetFiveProduct(); _allproduct.DataBind(); }