예제 #1
0
    private void FoodmenuShow()
    {
        // ListView1.DataSource = uc.ShowFoodMenu();
        // ListView1.DataBind();
        try
        {
            ListView1.DataSource = uc.GetfoodmenuSunday();
            ListView1.DataBind();

            ListView2.DataSource = uc.GetfoodmenuMonday();
            ListView2.DataBind();

            ListView3.DataSource = uc.GetfoodmenuTuesday();
            ListView3.DataBind();

            ListView4.DataSource = uc.GetfoodmenuWednesday();
            ListView4.DataBind();

            ListView5.DataSource = uc.GetfoodmenuThursday();
            ListView5.DataBind();

            ListView6.DataSource = uc.GetfoodmenuFriday();
            ListView6.DataBind();

            ListView7.DataSource = uc.GetfoodmenuSaturday();
            ListView7.DataBind();
        }
        catch (Exception ex)
        {
            string text = ex.Message.ToString();
            ScriptManager.RegisterStartupScript(this, typeof(Page), "Warning", "<script>showpoperror('" + text + "')</script>", false);
        }
    }
예제 #2
0
        private void BindProduct7()
        {
            DataTable dt = ProductService.SelectSLeft();

            if (dt != null && dt.Rows.Count != 0)
            {
                ListView7.DataSource = dt;
                ListView7.DataBind();
            }
        }
예제 #3
0
파일: tushu.aspx.cs 프로젝트: CHIclay/YUJ
 protected void wangwen()
 {
     ListView7.DataSource = BookManager.wangluo();
     ListView7.DataBind();
 }