private void IntroPageBuilder()
    {
        //ucColorBox1.IFrame("Test.html","670","490"); return;
        //<iframe width="420" height="315" src="//www.youtube.com/embed/Eq5BDBYzbzE" frameborder="0" allowfullscreen></iframe>
        var clsIntroPage = new clsIntroPage();
        var dt           = new DataTable();

        dt = clsIntroPage.IntroPageBuilder();

        if (dt != null && dt.Rows.Count > 0)
        {
            ucColorBox1.IFrame("/IntroPage.aspx", "1000px", "600px", false);
        }
    }
 private void IntroPageBuilder()
 {
     #region Variable
     var dt = new DataTable();
     var clsIntroPage=new clsIntroPage();
     #endregion
     dt = clsIntroPage.IntroPageBuilder();
     if (dt != null && dt.Rows.Count > 0)
     {
         lblPhoto.Text = string.Format(
             "<img src='{1}' alt='{0}' title='{0}'/>", 
             dt.Rows[0]["Name"].ToString(), dt.Rows[0]["Photo"].ToString());
     }
     else
     {
         lblPhoto.Text = "ไม่พบข้อมูล IntroPage";
     }
 }
Пример #3
0
 private void IntroPageBuilder()
 {
     #region Variable
     var dt           = new DataTable();
     var clsIntroPage = new clsIntroPage();
     #endregion
     dt = clsIntroPage.IntroPageBuilder();
     if (dt != null && dt.Rows.Count > 0)
     {
         lblPhoto.Text = string.Format(
             "<img src='{1}' alt='{0}' title='{0}'/>",
             dt.Rows[0]["Name"].ToString(), dt.Rows[0]["Photo"].ToString());
     }
     else
     {
         lblPhoto.Text = "ไม่พบข้อมูล IntroPage";
     }
 }
    private void IntroPageBuilder()
    {
        //ucColorBox1.IFrame("Test.html","670","490"); return;
        //<iframe width="420" height="315" src="//www.youtube.com/embed/Eq5BDBYzbzE" frameborder="0" allowfullscreen></iframe>
        var clsIntroPage = new clsIntroPage();
        var dt = new DataTable();
        dt = clsIntroPage.IntroPageBuilder();

        if (dt != null && dt.Rows.Count > 0)
        {
            ucColorBox1.IFrame("/IntroPage.aspx","1000px","600px",false);
        }
    }