Example #1
0
 protected void Page_Load(object sender, EventArgs e)
 {
     try
     {
         if (!Page.IsPostBack)
         {
             using (cUrunListeleri cUL = new cUrunListeleri())
             {
                 int sayi = 0;
                 foreach (DataRow dr in cUL.ListeSliderUrunleri().Rows)
                 {
                     ulSlider.InnerHtml = ulSlider.InnerHtml + "<li><a href=\"" + ResolveUrl("~/Urunler/" + dr["ID"] + "_" + cAraclar.URLDuzelt(dr["MODEL"].ToString())) + ".aspx\"><img src=\"Upload/UrunResimleri/" + dr["ID"] + "/" + dr["RESIM_ADI"] + "\"></a></li>";
                     sayi++;
                     ulSliderNav.InnerHtml = ulSliderNav.InnerHtml + "<li><a href=\"#\">" + sayi + "</a></li>";
                 }
                 lstUrunler.DataSource = cUL.ListeGrupTipiUrunleri(eGrupTipi.YeniUrun, 8);
                 lstUrunler.DataBind();
             }
         }
     }
     catch (Exception ex)
     {
         UIAraclari.cLog.Write(ex, UIAraclari._iKullaniciID);
     }
 }
Example #2
0
 private void GelecekUrunler()
 {
     try
     {
         using (cUrunListeleri cUL = new cUrunListeleri())
         {
             foreach (DataRow dr in cUL.ListeGrupTipiUrunleri(eGrupTipi.GelecekUrun, 3).Rows)
             {
                 ulYeniUrunler.InnerHtml = ulYeniUrunler.InnerHtml + "<li><table width=\"100%\"><tr><td align=\"center\"><img src=\"" + ResolveUrl("~/Upload/UrunResimleri/" + dr["ID"].ToString() + "/" + dr["ANARESIM"].ToString()) + "\"></td></tr><tr><td align=\"center\"><a href=\"" + ResolveUrl("~/Markalar/" + dr["MARKA"]) + "_" + cAraclar.URLDuzelt(dr["MARKA_ADI"].ToString()) + ".aspx\">" + dr["MARKA_ADI"].ToString() + "</a><br><a href=\"" + ResolveUrl("~/Urunler/" + dr["ID"] + "_" + cAraclar.URLDuzelt(dr["MODEL"].ToString())) + ".aspx\">" + dr["MODEL"].ToString() + "</a></td></tr></table></li>";
             }
         }
     }
     catch (Exception ex)
     {
         UIAraclari.cLog.Write(ex, UIAraclari._iKullaniciID);
     }
 }
Example #3
0
 protected void Page_Load(object sender, EventArgs e)
 {
     try
     {
         if (!Page.IsPostBack)
         {
             using (cUrunListeleri UG = new cUrunListeleri())
             {
                 lstUrunler.DataSource = UG.ListeGrupTipiUrunleri(eGrupTipi.GelecekUrun, 0);
                 lstUrunler.DataBind();
             }
         }
     }
     catch (Exception ex)
     {
         UIAraclari.cLog.Write(ex, UIAraclari._iKullaniciID.ToInt(0));
     }
 }