コード例 #1
0
 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();
 }
コード例 #2
0
 protected void Page_Load(object sender, EventArgs e)
 {
     Page.Title             = "View Product Page";
     _allproduct.DataSource = RepositoryProduct.GetFiveProduct();
     _allproduct.DataBind();
 }