protected void NewPopulateData()
 {
     string code = "NEWS";
     int record = 4;
     string strHTML = string.Empty;
     string path_image = "/user_files/images/article_images/front_images/";
     ArticleController article_obj = new ArticleController();
     DataTable dt = article_obj.GetListByNumCode(code, record);
     if (dt.Rows.Count > 0)
     {
         for (int i = 0; i < dt.Rows.Count; i++)
         {
             strHTML += "<ul class=\"typicalevents\">"
                             + "<li>"
                                 + " <a title=\"" + dt.Rows[i]["Headline"].ToString() + "\" href=\"#\">"
                                     + " <img class=\"newsphoto_small\" width=\"80\" height=\"57\" alt=\"" + dt.Rows[i]["Alias"].ToString() + "\" src='" + path_image + dt.Rows[i]["FrontImage"].ToString() + "' />"
                                     + "<h4>" 
                                         + dt.Rows[i]["TiTle"].ToString()
                                     + "</h4>"
                                 + " </a>"
                             + "</li>"
                       + "</ul>";
         }
         divContent.InnerHtml = strHTML;
     }
 }
        private string NewBottomPopulateData(string code, string div)
        {
            int record = 3;
            string strHTML = string.Empty;
            string newtop = string.Empty;
            string li = string.Empty;
            string path_front_image = "/user_files/images/article_images/front_images/";
            ArticleController article_obj = new ArticleController();
            DataTable dt = article_obj.GetListByNumCode(code, record);
            if (dt.Rows.Count > 0)
            {
                newtop += "<div class='box-widget-header'><h2><a href='#'>" + dt.Rows[0]["CategoryName"].ToString() + "</a></h2></div>"
                                + "<div class='box-widget-bottom fx'>"
                                    + "<div class='box-widget-bottom-ct'>"
                                        + "<a class='thumb' href=''><img height='150' width='150' src='" + path_front_image + dt.Rows[0]["FrontImage"].ToString() + "' alt=" + dt.Rows[0]["Alias"].ToString() + "></a>"
                                        + "<h3><a title=\"" + dt.Rows[0]["Alias"].ToString() + "\" class='title' href=''>" + dt.Rows[0]["Title"].ToString() + "</a></h3>";

                for (int i = 1; i < dt.Rows.Count; i++)
                {
                    li += "<li><a href='#' title=\"" + dt.Rows[i]["Alias"].ToString() + "\">" + dt.Rows[i]["Title"].ToString() + "</a></li>";
                }
            }
            //====================================================================================
            strHTML += "<div class=\"" + div + "\">"
                                + newtop
                                + "<ul>" + li + "</ul>"
                                + "</div>"
                            + "</div>"
                        + "</div>";
            return strHTML;
        }
        private void GetEventList(string code)
        {
            int record = 10;
            string strHTML = string.Empty;
            string path_image = "/user_files/images/article_images/front_images/";
           
            ArticleController article_obj = new ArticleController();
            DataTable dt = article_obj.GetListByNumCode(code, record);
            if (dt.Rows.Count > 0)
            {
                ltrCateName.Text = code;
                for (int i = 0; i < dt.Rows.Count; i++)
                {
                    string img = string.Empty;
                    if (dt.Rows[i]["FrontImage"].ToString() != "")
                        img = path_image + dt.Rows[i]["FrontImage"].ToString();
                    else
                        img = "/images/no_image.jpg";

                    strHTML += "<div class=\"row_item\">"
                                + "<h3><a title=\"" + dt.Rows[i]["Alias"].ToString() + "\" href=\"/tin-chi-tiet/" + dt.Rows[i]["Alias"].ToString() + "/" + code + "\"><span class='tick_header'></span>" + dt.Rows[i]["Title"].ToString() + "</h3>"
                                + "<div class=\"clear\"></div>"
                                + "<div class=\"item_thumb\"><a title=\"" + dt.Rows[i]["Alias"].ToString() + "\" href=\"/tin-chi-tiet/" + dt.Rows[i]["Alias"].ToString() + "/" + code + "\">"
                                + "<img height=\"150px\" width=\"140px\" alt=\"" + dt.Rows[i]["Alias"].ToString() + "\" src='" + img + "' /></a></div>"
                                + "<div class=\"item_abstract\">" + dt.Rows[i]["Abstract"].ToString() + "</div>"                            
                                + "<div class=\"clear\"></div>"
                                + "</div>";
                }
                ltrNewCode.Text = strHTML;
                ltrCateName.Text = dt.Rows[0]["CategoryName"].ToString();
            }
        }
 protected void PopulateBanner()
 {
     string code = "BANNER_NEWS";
     int record = 4;
     string base_url = CommonLibrary.Common.Utilities.UrlUtils.BaseSiteUrl;
     string strHtml = string.Empty, sliderImage = string.Empty, listBanner = string.Empty, Headline = string.Empty, Alias = string.Empty,
         Title = string.Empty, MainImage_Url = string.Empty, FrontImage_Url = string.Empty, NavigateUrl = string.Empty;
     const string pathMainImage = "/user_files/images/article_images/main_images/";
     const string pathFrontImage = "/user_files/images/article_images/front_images/";
     var article_obj = new ArticleController();
     DataTable dt = article_obj.GetListByNumCode(code, record);
     if (dt.Rows.Count > 0)
     {
         for (int i = 0; i < dt.Rows.Count; i++)
         {
             Title = dt.Rows[i]["Title"].ToString();
             Headline = dt.Rows[i]["Headline"].ToString();
             Alias = dt.Rows[i]["Alias"].ToString();
             FrontImage_Url = base_url + "/" + pathFrontImage + "/" + dt.Rows[i]["FrontImage"].ToString();
             MainImage_Url = base_url + "/" + pathMainImage + "/" + dt.Rows[i]["MainImage"].ToString();
             NavigateUrl = dt.Rows[i]["NavigateUrl"].ToString();
             if (NavigateUrl == "")
                 NavigateUrl = "/tin-chi-tiet/" + Alias + "/" + code;
             sliderImage += "<a href=\"" + NavigateUrl + "\" target=\"_blank\"><img src='" + MainImage_Url + "' alt='" + Title + "' /></a>";
             listBanner += "<div class=\"thumb\">"
                    + "<div class=\"frame\"><img src='" + FrontImage_Url + "' alt='" + Title + "' /></div>"
                    + "<div class=\"thumb-content\"><p><a href=\"" + NavigateUrl + "\" target=\"_blank\">" + Title + "</a></p></div>"
                    + "<div style=\"clear:both;\"></div>"
                + "</div>";
         }
         strHtml = "<div id=\"slider\">" + sliderImage + "</div>"
                   + "<div id=\"thumbs\">" + listBanner + "</div>";
     }
     divBanner.InnerHtml = strHtml;
 }
        protected void PopulateData(string code)
        {
            string strHTML = string.Empty, path_image = string.Empty, path_image1 = string.Empty, NavigateUrl = string.Empty, NavigateUrl1 = string.Empty;
            ArticleController article_obj = new ArticleController();
            DataTable dt = article_obj.GetListByCode(code);
            if (dt.Rows.Count > 1)
            {
                Uri requestUri = Context.Request.Url;
                string baseUrl = requestUri.Scheme + Uri.SchemeDelimiter + requestUri.Host + (requestUri.IsDefaultPort ? "" : ":" + requestUri.Port);

                int total = 0;
                if (dt.Rows.Count / 2 == 0)
                    total = dt.Rows.Count;
                else
                    total = dt.Rows.Count - 1;

                for (int i = 0; i < total; i += 2)
                {
                    if (dt.Rows[i]["Frontimage"].ToString() != "")
                        path_image = baseUrl + "/" + System.Configuration.ConfigurationManager.AppSettings["upload_image_dir"] + "/article_images/front_images/" + dt.Rows[i]["Frontimage"].ToString();
                    else
                        path_image = baseUrl + "/images/no_image.jpg";

                    if (dt.Rows[i + 1]["Frontimage"].ToString() != "")
                        path_image1 = baseUrl + "/" + System.Configuration.ConfigurationManager.AppSettings["upload_image_dir"] + "/article_images/front_images/" + dt.Rows[i + 1]["Frontimage"].ToString();
                    else
                        path_image1 = baseUrl + "/images/no_image.jpg";

                    if (dt.Rows[i]["NavigateUrl"].ToString() != "")
                        NavigateUrl = dt.Rows[i]["NavigateUrl"].ToString();
                    else
                        NavigateUrl = "#";
                    if (dt.Rows[i + 1]["NavigateUrl"].ToString() != "")
                        NavigateUrl1 = dt.Rows[i + 1]["NavigateUrl"].ToString();
                    else
                        NavigateUrl1 = "#";
                    strHTML += "<div class=\"item\">"
                                       + "<div class=\"col_odd\" style=\"float:left; padding: 3px; border:1px solid #CCCCCC; margin-right: 5px;\">"
                                            + "<a href='" + NavigateUrl + "'><img src=\"" + path_image + "\" width=\"120px\" height=\"110px\" alt=\"" + dt.Rows[i]["Alias"].ToString() + "\" /></a>"
                                       + "</div>"
                                       + "<div class=\"col_even\" style=\"float:left; padding: 3px; border:1px solid #CCCCCC;\">"
                                            + "<a href='" + NavigateUrl1 + "'><img src=\"" + path_image1 + "\" width=\"120px\" height=\"110px\" alt=\"" + dt.Rows[i + 1]["Alias"].ToString() + "\" /></a>"
                                       + "</div>"
                                   + "</div>";
                }
            }
            else
                strHTML = "<div class=\"item\">Dữ liệu không hợp lý</div>";
            LiteralContents.Text = strHTML;
        }
        protected void ApsPopulateData()
        {
            string code = "ADS_NEWS";
            int record = 4;
            string strHTML = string.Empty, Alias = string.Empty, Headline = string.Empty, Source = string.Empty,
                 Abstract = string.Empty, FilePath = string.Empty, Link = string.Empty;
            
            ArticleController article_obj = new ArticleController();
            DataTable dt = article_obj.GetListByNumCode(code, record);
            if (dt.Rows.Count > 0)
            {
                for (int i = 0; i < dt.Rows.Count; i++)
                {
                    Abstract = dt.Rows[i]["Abstract"].ToString();
                    Alias = dt.Rows[i]["Alias"].ToString();                    
                    Headline = dt.Rows[i]["Headline"].ToString();
                    Source = dt.Rows[i]["Source"].ToString();

                    if (!string.IsNullOrEmpty(dt.Rows[i]["FrontImage"].ToString()))
                        FilePath = "/user_files/images/article_images/front_images/" + dt.Rows[i]["FrontImage"].ToString();
                    else
                        FilePath = "/images/no_image.jpg";


                    if (string.IsNullOrEmpty(dt.Rows[i]["NavigateUrl"].ToString()))
                        Link = "/tin-chi-tiet/" + Alias + "/" + code;
                    else
                        Link = dt.Rows[i]["NavigateUrl"].ToString();

                    if (string.IsNullOrEmpty(dt.Rows[i]["Source"].ToString()))
                        Source = Request.Url.Host;
                    else
                        Source = dt.Rows[i]["Source"].ToString();                    

                    strHTML += "<div class='divAdvItems'>"
                                 + "<div class='divTitle'><a target='_self' href='" + Link + "' >" + Headline + "</a></div>"
                                 + "<div class='itemmc'><a target='_self' href='" + Link + "' >Nguồn: " + Source + "</a></div>"
                                 + "<div class='divImage'>"
                                    + "<a target='_self' href='" + Link + "'><img vspace='0' hspace='0' border='0' align='left' alt='" + Alias + "' src='" + FilePath + "' /></a>"
                                    + "<div class='price'><a target='_self' href='" + Link + "' >" + Abstract + "</a></div>"
                                 + "</div>"
                               + "</div>"
                               + "<div class='divBorder'><span></span></div>";
                }
                divAds.InnerHtml = strHTML;
            }
        }
        protected void PopulateData(string code)
        {
            string strHTML = string.Empty, path_image = string.Empty, path_image1 = string.Empty, NavigateUrl = string.Empty, NavigateUrl1 = string.Empty;
            ArticleController article_obj = new ArticleController();
            DataTable dt = article_obj.GetListByCode(code);
            if (dt.Rows.Count > 1)
            {
                Uri requestUri = Context.Request.Url;
                string baseUrl = requestUri.Scheme + Uri.SchemeDelimiter + requestUri.Host + (requestUri.IsDefaultPort ? "" : ":" + requestUri.Port);

                int total = 0;
                if (dt.Rows.Count / 2 == 0)
                    total = dt.Rows.Count;
                else
                    total = dt.Rows.Count - 1;

                for (int i = 0; i < total; i += 2)
                {
                    if (dt.Rows[i]["Frontimage"].ToString() != "")
                        path_image = baseUrl + "/" + System.Configuration.ConfigurationManager.AppSettings["upload_image_dir"] + "/article_images/front_images/" + dt.Rows[i]["Frontimage"].ToString();
                    else
                        path_image = baseUrl + "/images/no_image.jpg";

                    if (dt.Rows[i + 1]["Frontimage"].ToString() != "")
                        path_image1 = baseUrl + "/" + System.Configuration.ConfigurationManager.AppSettings["upload_image_dir"] + "/article_images/front_images/" + dt.Rows[i + 1]["Frontimage"].ToString();
                    else
                        path_image1 = baseUrl + "/images/no_image.jpg";

                    if (dt.Rows[i]["NavigateUrl"].ToString() != "")
                        NavigateUrl = dt.Rows[i]["NavigateUrl"].ToString();
                    else
                        NavigateUrl = "#";
                    if (dt.Rows[i + 1]["NavigateUrl"].ToString() != "")
                        NavigateUrl1 = dt.Rows[i + 1]["NavigateUrl"].ToString();
                    else
                        NavigateUrl1 = "#";
                    strHTML += "<li class=\"item\">"                                     
                                    + "<a class=\"col_odd\" href='" + NavigateUrl + "'><img width='120px' height=120px' src=\"" + path_image + "\" alt=\"" + dt.Rows[i]["Alias"].ToString() + "\" /></a>"                                     
                                    + "<a class=\"col_even\" href='" + NavigateUrl1 + "'><img width='120px' height=120px' src=\"" + path_image1 + "\" alt=\"" + dt.Rows[i + 1]["Alias"].ToString() + "\" /></a>"                                                                         
                                + "</li>";
                }
            }
            else
                strHTML = "<li class=\"item\">Dữ liệu không hợp lý</li>";
            scroller.InnerHtml = "<ul id=\"scroller_vticker\" class=\"ticker\">" + strHTML + "</ul>";
        }    
        private void PopulateEntryContent(string _alias, string _code)
        {
            string strHTML = string.Empty, strCreateDate = string.Empty;

            ArticleController article_obj = new ArticleController();
            DataTable dt = article_obj.GetDetailByCodeAlias(_alias, _code);            
            if (dt.Rows.Count > 0)
            {
                string CultureCode = dt.Rows[0]["CultureCode"].ToString().Trim();
                string CategoryName = dt.Rows[0]["CategoryName"].ToString();
                string Category_Alias = dt.Rows[0]["Category_Alias"].ToString();
                string Title = dt.Rows[0]["Title"].ToString();
                string Abstract = dt.Rows[0]["Abstract"].ToString();
                string Headline = dt.Rows[0]["Headline"].ToString();
                string MainText = dt.Rows[0]["MainText"].ToString();
                string Source = dt.Rows[0]["Source"].ToString();
                string Tags = dt.Rows[0]["Tags"].ToString();
                

                if (!string.IsNullOrEmpty(dt.Rows[0]["DateCreated"].ToString()))
                {
                    DateTime _strCreateDate = Convert.ToDateTime(dt.Rows[0]["DateCreated"].ToString());
                    strCreateDate = _strCreateDate.ToString("dd/MM/yyyy");
                }

                string Category_Header = GetCategoryNavigation(_code, CultureCode, "2");
               
                strHTML = Category_Header
                            + "<div class=\"entry\">"
                            + "<h1 class=\"entry-title\">" + Headline + "</h1>"
                            + "<div class=\"detail-cal\">Ngày đăng: "+ strCreateDate + "</div>"
                            + "<h2 class=\"entry-sapo\">" + Abstract + "</h2>"
                            + "<div class=\"main-detail-content\">" + MainText + "</div>"
                            + "<div class=\"author\">Nguồn: " + Source + "</div>"
                            + "<div class=\"ct-tags\"><span class='tag_heading'>Tags:</span><a href=\"/tin-tuc/\" target='_self'>" + Tags + "</a></div>"                          
                            + "<div class=\"clear\"></div>"
                            + "</div>";
            }
            else
            {
                strHTML = "Không có dữ liệu";
            }
            LiteralEntry.Text = strHTML;
        }
 protected void btnSend_Click(object sender, EventArgs e)
 {
     Page.Validate("ValidationCheck");
     if (Page.IsValid)
     {
         if (hiddenCaptcha.Value != null)
         {
             if (txtCaptcha.Text == hiddenCaptcha.Value)
             {
                 ArticleController article_obj=new ArticleController();
                 DataTable dt=article_obj.GetDetailByCodeAlias(ViewState["alias"].ToString(),ViewState["code"].ToString());
                 if (dt.Rows.Count > 0)
                 {
                     int articleid = Convert.ToInt32(dt.Rows[0]["ArticleId"].ToString());
                     //string userid = null;
                     string name = txtName.Text;
                     string email = txtEmail.Text;
                     //string comment_text = txtComment.Value;                            
                     string comment_text = Server.HtmlEncode(txtComments.Text);
                     int is_reply = 1;
                     string publish = "2";
                     ArticleCommentController comment_obj = new ArticleCommentController();
                     int i = comment_obj.Insert(articleid, name, comment_text, email, is_reply, publish);
                     if (i == 1)
                     {
                         string scriptCode = "<script>alert('Thông điệp đã được gửi đi.');window.location.href='/trang-chu/';</script>";
                         Page.ClientScript.RegisterClientScriptBlock(this.GetType(), "scriptName", scriptCode);
                     }
                     else if (i == -1)
                     {
                         string scriptCode = "<script>alert('Thông tin không đủ.');</script>";
                         Page.ClientScript.RegisterClientScriptBlock(this.GetType(), "scriptName", scriptCode);
                     }
                     else
                     {
                         string scriptCode = "<script>alert('Tiến trình gửi bị lỗi.');</script>";
                         Page.ClientScript.RegisterClientScriptBlock(this.GetType(), "scriptName", scriptCode);
                     }
                 }
             }
             else if (txtCaptcha.Text != hiddenCaptcha.Value)
             {
                 lblResult.Text = "Vui lòng thử lại lần nữa &nbsp;<div style=\"float:left; background:url(images/icons/OK_not_OK_Icons.png);background-position:100%;height:30px; width:30px\"></div>";
                 txtCaptcha.Text = "";
             }
         }
     }
 }
        private int AddData()
        {
            string userid = Session["UserId"].ToString();
            int portalid = Convert.ToInt32(ddlPortalList.SelectedValue);
            string culturecode = ddlCultureList.SelectedValue;
            string code = ddlTreeNode_Category.SelectedValue;
            string title = txtTitle.Text;
            string headline = txtHeadline.Text;
            string abstract_info = txtAbstract.Text;
            string contents = FCKeditorContent.Value;
            string source = txtSource.Text;
            string status = rdlStatus.SelectedValue;
            string navigateurl = txtNavigateUrl.Text;
            /*** UPLOAD ****************************************************************************************************************************************/
            string front_img = "", main_img = "";
            HttpPostedFile myfile = FileInput.PostedFile;
            if (myfile.FileName != string.Empty)
            {
                string front_img_path = Server.MapPath("~/" + System.Configuration.ConfigurationManager.AppSettings["upload_image_dir"] + "/article_images/front_images");
                string main_img_path = Server.MapPath("~/" + System.Configuration.ConfigurationManager.AppSettings["upload_image_dir"] + "/article_images/main_images");

                FileHandleClass file_handle_obj = new FileHandleClass();
                string[] FileImg = new String[2];
                FileImg = file_handle_obj.uploadFrontMainInputFile(myfile, front_img_path, main_img_path, 120, 120);
                main_img = FileImg[0].ToString();
                front_img = FileImg[1].ToString();
            }
            /*************************************************************************************************************************************************/
            ArticleController article_obj = new ArticleController();
            int i = article_obj.Insert(userid, portalid, culturecode, code, title, headline, abstract_info, front_img, main_img, contents, source, navigateurl, status);
            return i;
        }
        protected void TopicPopulateData()
        {
            string code = "NEWS_START";
            int record = 10;
            string strHTML = string.Empty;
            string path_image = "/user_files/images/article_images/front_images/";
            string scrimage = "/portals/news/skin/images/common/reddot.gif";
            ArticleController article_obj = new ArticleController();
            DataTable dt = article_obj.GetListByNumCode(code, record);

            //strHTML = "<div class=\"header-topic\">"
            //            + "<div style=\"float:left\">"
            //                + "<p class=\"title-topic\"><a href=\"#\">" + dt.Rows[0]["CategoryName"].ToString() + "</a></p></div>"
            //                + "<div class=\"xemtatca\" ><a href=\"#\" >xem thêm</a></div>"
            //            + "</div>"
            //            +"<div class=\"content-topic\">";

            if (dt.Rows.Count > 0)
            {
                for (int i = 0; i < 2; i++)
                {
                    strHTML += "<div class=\"inner-content-topic\">"
                                   + "<div class=\"content-item\">"
                                        + "<div class=\"content-inner-item\">"
                                            + " <a title=\"\" href=\"\">"
                                                + " <img alt=\"\" class=\"content-inner-item\" src='" + path_image + dt.Rows[i]["FrontImage"].ToString() + "' />"
                                            + " </a>"
                                        + "</div>"
                                   + "</div>"
                                   + "<div class=\"content_read\">"
                                        + "<div>"
                                            + " <p class=\"tieudebaiviet\">"
                                                + " <a href=\"#\">"
                                                    + dt.Rows[i]["Title"].ToString()
                                                +"</a>"
                                            + " </p>"
                                        + "</div>"
                                        + "<div class=\"motabaiviet\">"
                                            + " <p style=\"padding:5px 0px 0px 0px; margin:0px;\">"
                                            + " </p>"
                                        + "</div>"
                                        + "<div datetime=\"motabaiviet\" style=\"padding:10px 0px 0px 0px;display:none\">"
                                            + dt.Rows[i]["DateCreated"].ToString()
                                        + "</div>"
                                   + "</div>"
                             + "</div>";
                }
                string result = string.Empty;
                for (int i = 2; i < dt.Rows.Count; i++)
                {
                    result += "<div class=\"content-subnews\">"
                                    + " <img alt=\"\" src='" + scrimage + "' />"
                                    + " <a title=\"" + dt.Rows[i]["Alias"].ToString() + "\" href=\"\">"
                                    + dt.Rows[i]["TiTle"].ToString() + " </a>"
                            + " </div>";
                }
                strHTML += "<div class=\"content-item-last\">"
                                + "<div style=\"height:130px;overflow:hidden\">"
                                    + result
                                + "</div>"
                           + "</div>"
                           + "</div>";
                divTopics.InnerHtml = strHTML;
            }
        }
        protected void LoadSlideData(string code)
        {
            string strHTML = string.Empty, Alias = string.Empty, Slide = string.Empty, FrontImagePath = string.Empty, Headline = string.Empty, NavigateUrl= string.Empty;
            string path_front_image = "/user_files/images/article_images/front_images/";
            ArticleController article_obj = new ArticleController();
            DataTable dt = article_obj.GetListByCode(code);
            if (dt.Rows.Count > 0)
            {
                for (int i = 0; i < dt.Rows.Count; i++)
                {
                    Alias = dt.Rows[i]["Alias"].ToString();

                    if (!string.IsNullOrEmpty(dt.Rows[i]["NavigateUrl"].ToString()))
                        NavigateUrl = dt.Rows[i]["NavigateUrl"].ToString();
                    else
                        NavigateUrl = "#";
                    
                    if (!string.IsNullOrEmpty(dt.Rows[i]["FrontImage"].ToString()))
                        FrontImagePath = path_front_image + dt.Rows[i]["FrontImage"].ToString();
                    else
                        FrontImagePath = "/images/no_image.jpg";

                    if(!string.IsNullOrEmpty(dt.Rows[i]["Headline"].ToString()))
                    {
                        if (dt.Rows[i]["Headline"].ToString().Length > 20)
                            Headline = dt.Rows[i]["Headline"].ToString().Substring(0, 20);
                        else
                            Headline = dt.Rows[i]["Headline"].ToString();

                         Slide += "<div>"
                                + "<a href='" + NavigateUrl + "'>"
                                + "<img height='94' width='120' alt=\"" + Alias + "\" src='" + FrontImagePath + "' /><br />"
                                + "<span class=\"thumbnail-text\">" + Headline + "</span></a>"
                            + "</div>";
                    }else{
                         Slide += "<div>"
                                + "<a href='" + NavigateUrl + "'>"
                                + "<img height='94' width='120' alt=\"" + Alias + "\" src='" + FrontImagePath + "' /></a>"                                
                            + "</div>";
                    }

                   
                }
                strHTML = "<div id=\"carouselSider\">"
                                + Slide
                            + "</div>";
            }
            carouselSider.InnerHtml = strHTML;
        }
 protected void PopulateArticle2DDL()
 {
     string code = ddlCategory.SelectedValue;
     ArticleController article_obj = new ArticleController();
     DataTable dt = article_obj.GetListByCode(code);
     ddlArticles.Items.Clear();
     if (dt.Rows.Count > 0)
     {
         ddlArticles.DataSource = dt;
         ddlArticles.DataTextField = "Title";
         ddlArticles.DataValueField = "ArticleId";
         ddlArticles.DataBind();
     }
     else
     {
         ddlArticles.Items.Insert(0, new ListItem("- Chọn -", "0"));
         ddlArticles.SelectedIndex = 0;
         ddlArticles.DataBind();
     }
     ddlArticles.AutoPostBack = true;
 }