protected void Page_Load(object sender, EventArgs e)
{
if (Session["customerid"] == null)
Response.Redirect("Login.aspx");
if (!Page.IsPostBack)
{
div_ProductOrder.Visible = false;
div_ProductBrowser.Visible = true;
EntityManager<Product> mgrProduct = new EntityManager<Product>();
List<Product> product = mgrProduct.GetAll();
gv_Product.DataSource = product;
gv_Product.DataBind();
}
}