コード例 #1
0
ファイル: Default.aspx.cs プロジェクト: pareshf/testthailand
        protected void Page_Load(object sender, EventArgs e)
        {
            WebDataAccess webDataAccess = new WebDataAccess();
            DataSet ds = webDataAccess.GetFlightFares();
            if (ds != null && ds.Tables.Count > 0)
            {
                DataTable dtIntFares = ds.Tables[0];
                lstInternationalFares.DataSource = dtIntFares;
                lstInternationalFares.DataBind();
            }

            if (ds != null && ds.Tables.Count > 1)
            {
                DataTable dtDomeFares = ds.Tables[1];
                lstDomesticFares.DataSource = dtDomeFares;
                lstDomesticFares.DataBind();
            }

            DataTable dt = webDataAccess.GetTourFlash();
            if (dt != null && dt.Rows.Count > 0)
            {
                dvTopLeft.InnerHtml = dt.Rows[0]["TOP_LEFT"].ToString().Trim();
                dvTopRight.InnerHtml = dt.Rows[0]["TOP_RIGHT"].ToString().Trim();
                dvBottomLeft.InnerHtml = dt.Rows[0]["BOTTOM_LEFT"].ToString().Trim();
                dvBottomRight.InnerHtml = dt.Rows[0]["BOTTOM_RIGHT"].ToString().Trim();
            }
        }