Exemplo n.º 1
0
 public void LoadAlbum()
 {
     try
     {
         var list = pro_detail.Load_Product_Detail(_sNews_Seo_Url);
         if (list != null && list.Count > 0)
         {
             int id        = list[0].NEWS_ID;
             var listAlbum = pro_detail.Load_albumimg(id).ToList();
             Rpimg_small.DataSource = listAlbum;
             Rpimg_small.DataBind();
         }
     }
     catch (Exception ex)
     {
         clsVproErrorHandler.HandlerError(ex);
     }
 }
 public void Loaddetails()
 {
     try
     {
         Show_File_HTML();
         var list = pro_detail.Load_Product_Detail(_sNewsSeoUrl);
         if (list.Count > 0)
         {
             _newtitle = list[0].NEWS_TITLE;
             string newvideourl = list[0].NEWS_VIDEO_URL;
             ltl_newtitle.Text = _newtitle;
             ltl_ngaydang.Text = FomatDate(list[0].NEWS_PUBLISHDATE);
             ltl_link.Text     = "<a class='tdt' target='blank' rel='nofollow' href='" + newvideourl + "'>" + newvideourl + "</a>";
             ltl_cout.Text     = FormatView(list[0].NEWS_COUNT);
             ltl_video.Text    = GetLinkYoutube_detail(newvideourl, _newtitle);
             ltl_kenh.Text     = "<a class='tdt' target='blank' rel='nofollow' href='" + Get_linkkenh(Utils.CStrDef(list[0].NEWS_FIELD4)) + "'>" + Get_tenKenh(Utils.CStrDef(list[0].NEWS_FIELD4)) + "</a>";
         }
     }
     catch (Exception ex)
     {
         clsVproErrorHandler.HandlerError(ex);
     }
 }
Exemplo n.º 3
0
 protected void Rplistnews_ItemCommand(object source, RepeaterCommandEventArgs e)
 {
     if (e.CommandName == "AddCart")
     {
         string _sNews_Seo_Url = Utils.CStrDef(e.CommandArgument);
         var    list           = pro_detail.Load_Product_Detail(_sNews_Seo_Url);
         if (list.Count > 0)
         {
             if (Utils.CDecDef(list[0].NEWS_PRICE1) != 0)
             {
                 Response.Redirect("~/Resources/Addtocart.aspx?id=" + list[0].NEWS_ID + "&quantity=1");
             }
         }
     }
 }
Exemplo n.º 4
0
 public void Load_img_news(int take, int skip, ref Repeater rp)
 {
     rp.DataSource = pro_detail.Load_Product_Detail(_sNewsSeoUrl);
     rp.DataBind();
 }